home *** CD-ROM | disk | FTP | other *** search
/ BlastDOS / [DOS_Application]_Artisoft_-_LANtastic_6.0_-_Installation_Disks.zip / Disk1 / INSTALL.Old < prev    next >
Text File  |  1994-03-01  |  184KB  |  5,481 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10. @DefineProject
  11.   @Name = "LANtastic"
  12.   @Version = "6.00"
  13.   @Subdir = "\\LANTASTI"
  14.   @OutDrive = C
  15.   @InDiskBell = @True
  16.   @AssumeHardDisk = 1
  17. @EndProject
  18.  
  19. @If (@False)
  20.  @Display
  21.   Copyright (c) 1994 by Artisoft, Inc.
  22.  @EndDisplay
  23. @EndIf
  24.  
  25. @DefineVars
  26.   @Integer @RunWindows = (@Platform == 3)
  27.   @If (@RunWindows)
  28.      @Qstring @Beta         = "▀"
  29.      @Qstring @Registered   = "«"
  30.      @Qstring @Copyright    = "⌐"
  31.      @Qstring @Trademark    = "(TM)"
  32.   @Else
  33.      @Qstring @Beta         = "ß"
  34.      @Qstring @Registered   = ""
  35.      @Qstring @Copyright    = "(c)"
  36.      @Qstring @Trademark    = "(tm)"
  37.   @EndIf
  38.   @Qstring @Reg = "«"
  39.  
  40.   @Qstring @SLverMajor      = "6"
  41.   @Qstring @SLverMinor      = "00"
  42.   @Qstring @SLverMinorMinor = "020"
  43.   @Integer @MemAvail        = (@RAMAvail/1024)
  44.   @Integer @MemNeeded       = 450
  45.   @Integer @MemExtra        = 60
  46.   @Qstring @NameWin         = "@Name for Windows"
  47.   @Integer @CutVersion      = @True
  48.   @Integer @Time0           = @SystemDate
  49.   @Integer @Time1           = 0
  50.   @Integer @Time2           = 0
  51.  
  52.   @If (@Strlen("@CommandLine") > 0)
  53.     @Qstring @s0 = @StrConvert("@CommandLine","UC")
  54.     @Integer @InstallWindows = (@RunWindows || (@StrFind(@s0,"/WIN") >= 0))
  55.     @Integer @Describe = (@StrFind(@s0,"/DESC") >= 0)
  56.     @Integer @Help = ((@StrFind(@s0,"?") >= 0)
  57.          ||(@StrFind(@s0,"/H") >= 0)
  58.          ||(@StrFind(@s0,"HELP") >= 0))
  59.     @Integer @InfHelp = (@StrFind(@s0,"INF") >= 0)
  60.     @Integer @ExtractMode = (@StrFind(@s0,"EXTRACT") >= 0)
  61.     @Integer @ToFloppyOK  = (@StrFind(@s0,"FLOPPY") >= 0)
  62.     @Integer @ToNetworkOK = (@StrFind(@s0,"REMOTE") >= 0)
  63.   @Else
  64.     @Integer @InstallWindows = @RunWindows
  65.     @Integer @Describe = @False
  66.     @Integer @Help     = @False
  67.     @Integer @InfHelp  = @False
  68.     @Integer @ExtractMode = @False
  69.     @Integer @ToFloppyOK = @False
  70.     @Integer @ToNetworkOK = @False
  71.   @EndIf
  72.   @Integer @Red        = @RGB(255,0,0)
  73.   @Integer @Green      = @RGB(0,255,0)
  74.   @Integer @Blue       = @RGB(0,0,255)
  75.   @Integer @Black      = @RGB(0,0,0)
  76.   @Integer @Grey       = @RGB(255,255,255)
  77.   @Integer @Yellow     = @RGB(255,255,0)
  78.   @Integer @Magenta    = @RGB(255,0,255)
  79.   @Integer @Cyan       = @RGB(0,255,255)
  80.   @Integer @White      = @Grey
  81.   @Integer @V          = @VideoCard
  82.  
  83.   @Qstring @DosHeadingText = "   @Name  Version @Version  INSTALLATION   "
  84.   @Integer @DosHeadingRow  = 0
  85.   @Integer @DosHeadingCol  = 16
  86.   @Integer @DosHeadingCol1 = 5
  87.   @If (@ExtractMode)
  88.     @Integer @WinColor   = @Cyan
  89.     @Integer @DosHeadingColor = 11
  90.   @Else
  91.     @Integer @WinColor   = @Red
  92.     @Integer @DosHeadingColor = 14
  93.   @EndIf
  94.   @Integer @DebugColor   = @Magenta
  95.   @Integer @FColor       = @Red
  96.   @Integer @BColor       = @Blue
  97.   @Integer @DosColor     = 73
  98. @EndVars
  99.  
  100. @BackgroundMode(3,@WinColor,@Black)
  101. @PleaseWait("- Initializing")
  102.  
  103. @FastGoto = @True
  104.  
  105. @If (@RunWindows || (@MemAvail >= @MemNeeded))
  106.   @Goto ENOUGH_FOR_MENU
  107. @EndIf
  108.  
  109. MEMORY_ABORT:
  110. @Display
  111.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  112.  
  113.   This program needs @Eval(@MemNeeded + @MemExtra)@!K of available memory to install
  114.   @Name or extract @Name files and @MemNeeded@!K to run
  115.   the @Name SETUP Menu. Your computer only has @MemAvail@!K.
  116.  
  117.   Please remove drivers or TSRs to make more DOS memory available.
  118.   @FlushKeyboard() @Pause
  119. @EndDisplay
  120. @Exit
  121.  
  122. ENOUGH_FOR_MENU:
  123.  
  124. @DefineVars
  125.  
  126. @If(@InstallWindows)
  127.   @Qstring @TTEnable   = "@GetINI("TrueType","TTEnable")"
  128.   @Qstring @DiskAccess = "@GetINI("386enh","32BitDiskAccess","system.ini")"
  129.   @Qstring @MDriver    = "@GetINI("boot.description","mouse.drv","system.ini")"
  130.   @Qstring @NetDriver  = "@GetINI("boot","network.drv","system.ini")"
  131.   @Qstring @NetName    = "@GetINI("boot.description","network.drv","system.ini")"
  132.   @Qstring @DispDriver = "@GetINI("boot","display.drv","system.ini")"
  133.   @Qstring @WinShell   = "@GetINI("boot","shell","system.ini")"
  134.   @Qstring @WallPaper  = "@GetINI("desktop","wallpaper")"
  135.   @Qstring @ScreenSave = "@GetINI("windows","ScreenSaveActive")"
  136.   @Qstring @PSwapFile  = "@GetINI("386Enh","PermSwapDOSDrive","system.ini")"
  137.   @Qstring @PSwapSize  = "@GetINI("386Enh","PermSwapSizeK","system.ini")"
  138.   @Qstring @DefaultWDevice = " @GetINI("windows","device","win.ini")"
  139. @Else
  140.   @Qstring @TTEnable   = "N/A"
  141.   @Qstring @DiskAccess = "N/A"
  142.   @Qstring @MDriver    = "N/A"
  143.   @Qstring @NetDriver  = "N/A"
  144.   @Qstring @NetName    = "N/A"
  145.   @Qstring @DispDriver = "N/A"
  146.   @Qstring @WinShell   = "N/A"
  147.   @Qstring @WallPaper  = "N/A"
  148.   @Qstring @ScreenSave = "N/A"
  149.   @Qstring @PSwapFile  = "N/A"
  150.   @Qstring @PSwapSize  = "N/A"
  151.   @Qstring @DefaultWDevice = " "
  152. @EndIf
  153.  
  154.  
  155.   @Qstring @InfHeader = ""
  156.  
  157.   @Qstring @InfMode   = ""
  158.   @Qstring @InfType   = ""
  159.   @Qstring @InfComputerName = ""
  160.   @Qstring @InfInstallPath  = ""
  161.   @Qstring @InfExecutePath  = ""
  162.   @Qstring @InfWindows = ""
  163.   @Qstring @InfShare   = ""
  164.   @Qstring @InfLogouts = ""
  165.   @Qstring @InfLogins = ""
  166.   @Qstring @InfMail    = ""
  167.   @Qstring @InfPOname  = ""
  168.   @Qstring @InfSyncMail = ""
  169.   @Qstring @InfNcp     = ""
  170.   @Qstring @InfSmb     = ""
  171.   @Qstring @InfInstallServices = ""
  172.   @Qstring @InfAdapter = ""
  173.   @Qstring @InfConnect = ""
  174.   @Qstring @InfDrive1  = ""
  175.   @Qstring @InfDrive2  = ""
  176.   @Qstring @InfPrinter1 = ""
  177.   @Qstring @InfPrinter2 = ""
  178.   @Qstring @InfChangeSystemFiles = ""
  179.   @Qstring @ComputerName = ""
  180.   @Qstring @InstallDir   = ""
  181.   @Qstring @SharePath    = ""
  182.   @Qstring @XSharePath   = ""
  183.   @Qstring @NOSdir       = ""
  184.   @Qstring @CTLdir       = ""
  185.   @Qstring @InstallPath  = ""
  186.   @Qstring @ExecutePath  = ""
  187.   @Qstring @LicensePath  = ""
  188.   @Qstring @POname       = ""
  189.   @Qstring @MailPath     = ""
  190.   @Qstring @MailDataPath = ""
  191.   @Qstring @MailInstallPath = ""
  192.   @Qstring @MailInstallDataPath = ""
  193.   @Qstring @MailDirectDataPath  = ""
  194.   @Qstring @MailTempPath = ""
  195.   @Qstring @ScriptTempPath = ""
  196.   @Qstring @TempPath     = @GetEnv("TEMP")
  197.   @Qstring @LinkPath     = ""
  198.   @Qstring @NdisInstallPath = ""
  199.   @Qstring @AnsiInstallPath = ""
  200.   @Qstring @AnsiExecutePath = ""
  201.   @Qstring @AnsiMailTempPath = ""
  202.   @Qstring @WindowsPath  = "@WindowsDrive:@WindowsDir"
  203.   @If ("@StartupDir" == "\\")
  204.     @Qstring @StartupPath = "@StartupDrive:"
  205.   @Else
  206.     @Qstring @StartupPath = "@StartupDrive:@StartupDir"
  207.   @Endif
  208.   @Drive @ScriptDrive    = (@StrIndex("@ScriptFile",0))
  209.   @Qstring @ScriptPath   = @StrHead(@ScriptFile,@StrRFind(@ScriptFile,"\\"))
  210.   @Integer @ScriptXfered = @False
  211.   @Integer @DD360        = @False
  212.   @Integer @HighDensity  = @False
  213.   @Integer @LowDensity   = @False
  214.   @Integer @NumDisks     = 0
  215.   @Integer @NewTemp      = @False
  216.   @Qstring @LibName      = ""
  217.   @Integer @NetEnabled   = @True
  218.   @Qstring @DisabledFile = "DISABLED"
  219.   @Integer @ShareEnabled = @True
  220.   @Qstring @NoShareFile  = "NOSHARE"
  221.   @Integer @NcpEnabled   = 0
  222.   @Integer @SmbEnabled   = 0
  223.   @Integer @InstallServices = @False
  224.   @Integer @MailEnabled  = @False
  225.   @Integer @NetMail      = @False
  226.   @Integer @MailServer   = @False
  227.   @Integer @NewMailServer = @False
  228.   @Integer @ClearMailData = @False
  229.   @Integer @FaxEnabled   = @False
  230.   @Integer @SetConnect   = @True
  231.   @Qstring @DriveLetter1 = ""
  232.   @Qstring @DriveServer1 = ""
  233.   @Qstring @DriveName1   = ""
  234.   @Qstring @DriveLetter2 = ""
  235.   @Qstring @DriveServer2 = ""
  236.   @Qstring @DriveName2   = ""
  237.   @Qstring @PrintPort1   = ""
  238.   @Qstring @PrintServer1 = ""
  239.   @Qstring @PrintName1   = ""
  240.   @Qstring @PrintPort2   = ""
  241.   @Qstring @PrintServer2 = ""
  242.   @Qstring @PrintName2   = ""
  243.   @Qstring @DefaultWPrintName = "@StrToken("@DefaultWDevice",0,",")"
  244.   @Qstring @DefaultWPrintPort = "@StrHead("@StrToken("@DefaultWDevice",2,",")",4)"
  245.  
  246.   @Qstring @ValidDrives  = "DEFGHIJKLMNOPQRSTUVWXYZ"
  247.   @Qstring @ChosenDrives = ""
  248.   @Qstring @AvailableDrives = ""
  249.   @Qstring @ExistingFloppy = ""
  250.   @Qstring @ExistingRemote = ""
  251.   @Qstring @FirstAvailable = ""
  252.   @Qstring @SecondAvailable = ""
  253.   @Qstring @ValidPorts   = "LPT1 LPT2 LPT3 LPT4 COM1 COM2 COM3 COM4"
  254.   @Qstring @ChosenPorts  = ""
  255.    @Qstring @InstallProg  = "INSTALL.EXE"
  256.   @Qstring @InstallScript = "INSTALL.DAT"
  257.   @Qstring @InstallInfo   = "INSTALL.INF"
  258.   @If (@RunWindows)
  259.     @Qstring @InitControlProg = "INITCTLW.EXE"
  260.   @Else
  261.     @Qstring @InitControlProg = "INITCTL.EXE"
  262.   @EndIf
  263.   @Qstring @InitControlArg = "-K"
  264.   @Qstring @DiskID         = "DISK.ID"
  265.   @Qstring @ArtiDocProg    = "ARTIDOCS.EXE"
  266.   @Qstring @ArtiDocDir     = "ARTIDOCS"
  267.   @Qstring @SLconfigFile   = "LANTASTI.CFG"
  268.   @Qstring @Config         = "@BootDrive:\\CONFIG.SYS"
  269.   @Qstring @AutoExec       = "@BootDrive:\\AUTOEXEC.BAT"
  270.   @Dir @Root               = "\\"
  271.  
  272.   @Qstring @AdapterNif   = ""
  273.   @Qstring @AdapterName  = ""
  274.   @Qstring @AdapterProg  = ""
  275.   @Qstring @AdapterArgs  = ""
  276.   @Qstring @AdapterProgX = ""
  277.   @Qstring @AdapterArgsX = ""
  278.   @Integer @Our2mb       = @False
  279.   @Integer @OurMport     = @False
  280.  
  281.  
  282.   @Integer @Aopt = 0
  283.   @Qstring @AdapterName1a = "Simply LANtastic Internal Network Adapter"
  284.   @Qstring @AdapterName1b = "LANtastic NodeRunner 2000 Series Ethernet Adapter"
  285.   @Qstring @AdapterProg1  = "NR.EXE"
  286.   @Qstring @AdapterName2  = "LANtastic NE-3 Ethernet Adapter"
  287.   @Qstring @AdapterProg2  = "NE3.EXE"
  288.   @Qstring @AdapterName3  = "LANtastic AE-2 Micro Channel Ethernet Adapter"
  289.   @Qstring @AdapterProg3  = "AE2.EXE"
  290.   @Qstring @AdapterName4  = "Artisoft AE-2 or AE-3 Ethernet Adapter (ISA)"
  291.   @Qstring @AdapterProg4  = "AEX.EXE"
  292.   @Qstring @AdapterName5  = "Central Station PC to Ethernet node"
  293.   @Qstring @AdapterProg5  = "CSPPORT.EXE"
  294.   @Qstring @AdapterName6  = "LANtastic Dial-Up Remote Node"
  295.   @Qstring @AdapterProg6  = "MPORT.EXE~LDU-MGR.EXE"
  296.   @Qstring @AdapterNameMB1 = "OLDLB LANtastic Original 2Mbps Adapter (ISA)"
  297.   @Qstring @AdapterProgMB1 = "LANBIOS.EXE`IRQ=5 ADDRESS=D800"
  298.   @Qstring @AdapterNameMB2 = "LANBIOS LANtastic 2Mbps MC (Micro Channel)"
  299.   @Qstring @AdapterProgMB2 = "LANBIOS.EXE"
  300.   @Qstring @AdapterNameMB3 = "LANBIOS2 Enhanced LANtastic 2Mbps Adapter (ISA)"
  301.   @Qstring @AdapterProgMB3 = "LANBIOS2.EXE`IRQ=3 IOBASE=280 RAMBASE=D800"
  302.   @Qstring @AdapterNameMB4 = "LANBIOS3 LANtastic A2Mbps Adapter (ISA)"
  303.   @Qstring @AdapterProgMB4 = "LANBIOS3.EXE`IRQ=3 RAMBASE=D800"
  304.   @Qstring @AdapterNameOther = "Other LANtastic Compatible Adapter"
  305.   @Qstring @AdapterProgOther = "ECHO.`Insert @AdapterNameOther here.~ECHO.`DRIVER.EXE IRQ=? IOBASE=??? RAMBASE=????"
  306.   @Qstring @AdapterName7  = "3C503MM 3COM 3C503 Ethernet Adapter"
  307.   @Qstring @AdapterProg7  = "3C503MM.EXE`IRQ=3 IOBASE=300 TRANSCEIVER_TYPE=ON-BOARD"
  308.   @Qstring @AdapterName8  = "3COM507 3COM 3C507 Ethernet Adapter"
  309.   @Qstring @AdapterProg8  = "3COM507.EXE"
  310.   @Qstring @AdapterName9  = "3COM523 3COM 3C523 Ethernet Adapter"
  311.   @Qstring @AdapterProg9  = "3COM523.EXE"
  312.   @Qstring @AdapterName10 = "ARCNET SMC ARCNET Compatible 8-bit or 16-bit"
  313.   @Qstring @AdapterProg10 = "ARCNET.EXE"
  314.   @Qstring @AdapterName11a = "NEX0MC Novell NE/2 Micro Channel or Compatible"
  315.   @Qstring @AdapterProg11a = "NEX000.EXE"
  316.   @Qstring @AdapterName11b = "NEX008 Novell NE1000 8-bit ISA bus or Compatible"
  317.   @Qstring @AdapterProg11b = "NEX000.EXE`IRQ=3 IOBASE=300"
  318.   @Qstring @AdapterName11c = "NEX016 Novell NE2000 16-bit ISA bus or Compatible"
  319.   @Qstring @AdapterProg11c = "NEX000.EXE`16-BIT IRQ=3 IOBASE=300"
  320.   @Qstring @AdapterName12 = "PATCC Xircom PA02B6 Pocket ARCNET"
  321.   @Qstring @AdapterProg12 = "PATCC.EXE`IRQ=7 LPT=1"
  322.   @Qstring @AdapterName13 = "PE Xircom PE10B2 Pocket Ethernet"
  323.   @Qstring @AdapterProg13 = "PE.EXE`IRQ=7 LPT=1"
  324.   @Qstring @AdapterName14 = "SMCARC SMC ARCNET 220, 500WS (short)"
  325.   @Qstring @AdapterProg14 = "SMCARC.EXE`IRQ=2 IOBASE=2E0 RAMBASE=D000"
  326.   @Qstring @AdapterName15 = "TCARC Thomas-Conrad ARC-CARD/CE /AT & /MC"
  327.   @Qstring @AdapterProg15 = "TCARC.EXE`IRQ=2 RAMBASE=D000"
  328.   @Qstring @AdapterName16 = "TLINK Tandy TandyLink Adapter"
  329.   @Qstring @AdapterProg16 = "DRVR8530.COM~TLINK.EXE SPEED=HIGH"
  330.   @Qstring @AdapterName17 = "WD8003 SMC (Western Digital) WD8003/WD8013 Ethernet Adapters"
  331.   @Qstring @AdapterProg17 = "WD8003.EXE`IRQ=3 IOBASE=280 RAMBASE=D000"
  332.  
  333.  
  334.   @Qstring @AdapterNameAEX = "\"AEX\" NDIS Support for Artisoft Adapters"
  335.   @Qstring @AdapterProgAEX = "AEXNDIS.DOS"
  336.   @Qstring @AdapterNifAEX  = "AEXNDIS_NIF"
  337.   @Qstring @AdapterNameNdis = "NDIS Support for Network Adapters"
  338.   @Qstring @AdapterProgNdis = ""
  339.  
  340.   @Qstring @NetbiosProg = "AILANBIO.EXE"
  341.   @Qstring @NdisProg    = "AI-NDIS.EXE"
  342.   @Qstring @ProtmanProg = "PROTMAN.DOS"
  343.   @Qstring @ServerProg  = "SERVER.EXE"
  344.   @Qstring @RedirProg   = "REDIR.EXE"
  345.   @Qstring @EditProg    = "\\DOS\\EDIT.COM"
  346.   @Qstring @ShareProg   = "\\DOS\\SHARE.EXE"
  347.   @Qstring @ShareArgs   = ""
  348.  
  349.   @Qstring @DefaultNetPath = "C:\\LANTASTI"
  350.   @Qstring @SysDrive    = ""
  351.   @Qstring @SysDir      = ""
  352.   @Qstring @SysFile     = ""
  353.   @Qstring @WinIni      = ""
  354.   @Qstring @WinFileIni  = ""
  355.   @Qstring @SystemIni   = ""
  356.   @Qstring @ArtmailIni  = "ARTMAIL.INI"
  357.   @Qstring @StartPath   = ""
  358.   @If (@RunWindows)
  359.     @Qstring @InfPath   = "@StartupPath\\@InstallInfo"
  360.   @Else
  361.     @Qstring @InfPath   = "@ScriptPath\\@InstallInfo"
  362.   @EndIf
  363.   @Qstring @NdisPath    = ""
  364.   @Qstring @LoginParam  = ""
  365.   @Qstring @NetbiosParam = ""
  366.   @Qstring @DDEstring   = ""
  367.   @Integer @SysBuffers  = 20
  368.   @Integer @SysFiles    = 50
  369.   @Integer @Ncbs        = 13
  370.   @Integer @LinkExtra   = 10
  371.   @Integer @Sessions    = 20
  372.   @Integer @RxBuffers   = 10
  373.   @Integer @Logouts     = 15
  374.   @Integer @Logins      = 10
  375.   @Qstring @ParamFile   = ""
  376.   @Qstring @ParamPath   = ""
  377.   @Qstring @SetPath     = ""
  378.   @Qstring @ConnectPath = ""
  379.   @Qstring @SamplePath  = ""
  380.   @Qstring @Loadhigh    = ""
  381.   @Qstring @Echo        = ""
  382.   @Qstring @Call        = ""
  383.   @Qstring @Illegal     = "*?/%;:+=.,[]|><'\"\t\\"
  384.   @Qstring @Illegal0    = "*?/%;:+=,[]|><'\"\@\t"
  385.   @Qstring @Illegal1    = "*?/%;+=,[]|><'\"\t"
  386.   @Qstring @BadChar     = " You typed a character that isn't allowed."
  387.   @Integer @Qemm        = @False
  388.   @Integer @Add         = @False
  389.  
  390.   @Qstring @Ext         = ""
  391.  
  392.   @Integer @InstallMode = @False
  393.   @Integer @NewInstall  = @False
  394.   @Integer @KeepInstall = @True
  395.   @Integer @SyncMail    = @True
  396.   @Integer @MenuMode    = @False
  397.   @Integer @ArtiDocMode = @False
  398.   @Integer @ForceName   = @False
  399.   @Integer @ChangeSystemFiles = @True
  400.   @Integer @AlreadyKeep = @False
  401.   @Integer @MailSupport = (@CPU >= 386)
  402.  
  403.   @Integer @FromFloppy  = @False
  404.   @Integer @FromHard    = @False
  405.   @Integer @ToFloppy    = @False
  406.   @Integer @ToHard      = @False
  407.   @Integer @ToNetwork   = @False
  408.   @Qstring @EnvLanCfg   = @GetEnv("LAN_CFG")
  409.   @Qstring @EnvLanDir   = @GetEnv("LAN_DIR")
  410.   @Qstring @AnsiEnvLanDir = ""
  411.  
  412.   @Integer @DebugMode    = @Exists("@StartupPath\\DEBUG")
  413.   @Integer @EditMode     = @Exists("@StartupPath\\EDIT")
  414.   @Integer @NoRebootMode = @Exists("@StartupPath\\NOREBOOT")
  415.   @Integer @NoWindowsMode = @Exists("@StartupPath\\NOWIN")
  416.   @Integer @NoFilesMode  = @Exists("@StartupPath\\NOFILES")
  417.   @Integer @AlphaMode    = @Exists("@StartupPath\\ALPHA")
  418.   @Integer @InfFileMode  = @Exists("@InfPath")
  419.  
  420.   @Integer @DosInstalled = @False
  421.   @Integer @WinInstalled = @False
  422.   @Integer @PrevNOS      = @False
  423.   @Integer @SimplyNOS    = @False
  424.   @Integer @AutoExecChanged  = @False
  425.   @Integer @ConfigChanged    = @False
  426.   @Integer @StartNetChanged  = @False
  427.   @Integer @SystemIniChanged = @False
  428.   @Integer @WinIniChanged    = @False
  429.   @Integer @WinFileChanged   = @False
  430.   @Integer @ProtocolIniChanged = @False
  431.   @Integer @ProgmanIniChanged  = @False
  432.   @Integer @WnetIniChanged     = @False
  433.   @Integer @WnetMgrIniChanged  = @False
  434.   @Integer @MailIniChanged = @False
  435.   @Integer @Share          = @True
  436.   @Integer @ShareExe       = @False
  437.   @Integer @NdisSelected   = @False
  438.   @Integer @AexNdisSelected = @False
  439.   @Integer @NOSdate         = 0
  440.  
  441.   @Qstring @AutoExecMsg   = ""
  442.   @Qstring @ConfigMsg     = ""
  443.   @Qstring @StartNetMsg   = ""
  444.   @Qstring @SystemIniMsg  = ""
  445.   @Qstring @WinIniMsg     = ""
  446.   @Qstring @ProtocolIniMsg = ""
  447.   @Qstring @ProgmanIniMsg = ""
  448.  
  449.   @Qstring @Param    = ""
  450.   @Qstring @Options0 = ""
  451.   @Qstring @Options1 = ""
  452.   @Qstring @Options2 = ""
  453.   @Qstring @SyncFlag = ""
  454.   @Qstring @s1  = ""
  455.   @Qstring @s2  = ""
  456.   @Qstring @s3  = ""
  457.   @Qstring @s4  = ""
  458.   @Qstring @s5  = ""
  459.   @Qstring @s6  = ""
  460.   @Qstring @s7  = ""
  461.   @Qstring @s8  = ""
  462.   @Qstring @s9  = ""
  463.   @Qstring @s10 = ""
  464.   @Qstring @s11 = ""
  465.   @Qstring @x1  = ""
  466.   @Qstring @x2  = ""
  467.   @Qstring @x3  = ""
  468.   @Qstring @x4  = ""
  469.   @Qstring @x5  = ""
  470.   @If (@RunWindows) @Qstring @key = "click on  \"OK\" " @Else @Qstring @key = "press ENTER" @EndIf
  471.   @Qstring @Warning  = "W A R N I N G        W A R N I N G"
  472.   @Qstring @Underline10 = "__________"
  473.   @Qstring @Underline20 = "_____________________"
  474.   @Qstring @Underline40 = "@Underline20@Underline20"
  475.   @Qstring @AtSign      = "@@"
  476.   @If (@RunWindows) @Qstring @AndSign = "or" @Else @Qstring @AndSign = "&" @EndIf
  477.   @Qstring @action = ""
  478.   @Qstring @your   = "your"
  479.   @Qstring @my     = "my"
  480.   @Qstring @keep   = ""
  481.   @Qstring @increase = ""
  482.   @Qstring @setmax = ""
  483.   @Integer @t = 0
  484.   @Integer @b = 0
  485.   @Integer @i = 0
  486.   @Integer @k = 0
  487.   @Integer @n = 0
  488.   @Drive   @d = Z
  489.  
  490.   @Qstring @Ex1 = ""
  491.   @Qstring @Po1 = ""
  492.   @Qstring @Nd1 = ""
  493.   @Qstring @Dv1 = ""
  494.   @Qstring @Dv2 = ""
  495.   @Qstring @Dv3 = ""
  496.   @Qstring @Pt1 = ""
  497.   @Qstring @Pt2 = ""
  498.   @Qstring @Pt3 = ""
  499.  
  500.   @Integer @MinDosMajor = 3
  501.   @Integer @MinDosMinor = 1
  502.   @Integer @MinWinMajor = 3
  503.   @Integer @MinWinMinor = 1
  504.  
  505.   @Qstring @PromptName  = ""
  506.   @Qstring @PromptNdis  = ""
  507.   @Qstring @PromptSub   = ""
  508.  
  509. @If (@RunWindows)
  510.   @Qstring @S100  = "    "
  511.   @Qstring @S400  = "      "
  512.   @Qstring @S500  = "     "
  513.   @Qstring @S600  = "      "
  514.   @Qstring @S700  = "      "
  515.   @Qstring @S800  = "   "
  516.   @Qstring @S801  = "   "
  517.   @Qstring @S900  = "   "
  518.   @Qstring @S901  = "   "
  519.   @Qstring @S999  = "       "
  520.  
  521.   @Qstring @Sdrive = "      "
  522.   @Qstring @Sxxdir = "    "
  523.   @Qstring @Sxname = "   "
  524.   @Qstring @Sshare = ""
  525.   @Qstring @Scolor = "  "
  526.   @Qstring @Sadapt = "     "
  527.   @Qstring @Sopt1  = "       "
  528.   @Qstring @Sopt2  = "                "
  529.   @Qstring @Sprint = "   "
  530.   @Qstring @Swin = "   "
  531.   @Qstring @Sdos = "   "
  532.   @Qstring @Sbw  = "    "
  533.   @Qstring @Sinf = "     "
  534.   @Qstring @Sflp = ""
  535.   @Qstring @Snet = ""
  536.   @Qstring @Sext = ""
  537.   @Qstring @Sf1  = "   "
  538.   @Qstring @Sf2  = "    "
  539.   @Qstring @Sf3  = "    "
  540.   @Qstring @Sf4  = "     "
  541.   @Qstring @Sf5  = " "
  542.   @Qstring @Sf6  = "      "
  543.   @Qstring @Sf7  = ""
  544.   @Qstring @Sf8  = "   "
  545. @Else
  546.   @Qstring @S100 = ""
  547.   @Qstring @S400 = ""
  548.   @Qstring @S500 = ""
  549.   @Qstring @S600 = ""
  550.   @Qstring @S700 = ""
  551.   @Qstring @S800 = ""
  552.   @Qstring @S801 = ""
  553.   @Qstring @S900 = ""
  554.   @Qstring @S901 = ""
  555.   @Qstring @S999 = ""
  556.  
  557.   @Qstring @Sdrive = ""
  558.   @Qstring @Sxxdir = ""
  559.   @Qstring @Sxname = ""
  560.   @Qstring @Sshare = ""
  561.   @Qstring @Scolor = ""
  562.   @Qstring @Sadapt = ""
  563.   @Qstring @Sopt1  = ""
  564.   @Qstring @Sopt2  = ""
  565.   @Qstring @Sprint = ""
  566.   @Qstring @Swin = ""
  567.   @Qstring @Sdos = ""
  568.   @Qstring @Sbw  = ""
  569.   @Qstring @Sinf = ""
  570.   @Qstring @Sflp = ""
  571.   @Qstring @Snet = ""
  572.   @Qstring @Sext = ""
  573.   @Qstring @Sf1  = ""
  574.   @Qstring @Sf2  = ""
  575.   @Qstring @Sf3  = ""
  576.   @Qstring @Sf4  = ""
  577.   @Qstring @Sf5  = ""
  578.   @Qstring @Sf6  = ""
  579.   @Qstring @Sf7  = ""
  580.   @Qstring @Sf8  = ""
  581. @EndIf
  582.  
  583.   @Qstring @NifList = ""
  584.   @Qstring @NifPath = ""
  585.   @Qstring @NifDir  = ""
  586.   @Qstring @NifFile = ""
  587.   @Integer @NifFound = @True
  588.   @Integer @NifVersion = 0
  589.  
  590.   @Qstring @NdisDriver = ""
  591.   @Qstring @NdisDevice = ""
  592.   @Qstring @NdisTitle  = ""
  593.   @Qstring @NdisType   = ""
  594.   @Qstring @NdisDDir   = ""
  595.   @Qstring @NdisCopyFiles = ""
  596.   @Qstring @NdisDriverPath = ""
  597.   @Qstring @NdisDriverDir = ""
  598.   @Qstring @NdisDriverFile = ""
  599.  
  600.   @Qstring @NdisProtocolFile = "PROTOCOL.INI"
  601.   @Qstring @NdisProtocolDir  = ""
  602.   @Qstring @ProtocolOrg = ""
  603.  
  604.   @Integer @HeaderFixed = @False
  605.   @Integer @NdisOK      = @False
  606.  
  607. @EndVars
  608.  
  609.  
  610.  
  611. @If (@DebugMode)
  612.   @Simulate
  613.   @EndSimulate
  614. @EndIf
  615.  
  616.  
  617.  
  618. @If ((@OSMajor < @MinDosMajor) ||
  619.      ((@OSMajor == @MinDosMajor) && (@OSMinor < @MinDosMinor)))
  620.   @BackgroundMode(3,@Red,@Red)
  621.   @Display
  622.      @Cls
  623.      The version of DOS running on this computer -- @OSMajor.@OSMinor -- is
  624.      not sufficient for installing or running @Name Version @Version.
  625.  
  626.      You should upgrade your DOS to at least version @MinDosMajor.@MinDosMinor.
  627.      @FlushKeyboard() @Pause @Abort
  628.   @EndDisplay
  629. @EndIf
  630.  
  631. @If ((@OSMajor < 3) ||
  632.      ((@OSMajor == 3) && (@OSMinor < 3)))
  633.    @Echo = "echo"
  634. @Else
  635.    @Echo = "@@echo"
  636.    @Call = "call "
  637. @EndIf
  638.  
  639.  
  640. @CutVersion = @False
  641.  
  642.  
  643.  
  644. @If (@Describe)
  645.   @BackgroundMode(3,@Green,@Black)
  646.   @Display
  647.     @Cls
  648.  
  649.     @Name INSTALL Version @Version.@SLverMinorMinor
  650.     Artisoft Install Version @RevMajor.@RevMinor.@RevSub
  651.     @If (@CutVersion)@!(DOS-only 360K-diskette Version) @EndIF
  652.     @FlushKeyboard() @Pause @Exit
  653.   @EndDisplay
  654. @EndIf
  655.  
  656.  
  657. @If (@Help)
  658.  @BackgroundMode(3,@Green,@Black)
  659.  @Display
  660.    @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  661.  
  662.    The following options can used with @Name @Registered INSTALL:
  663.  
  664.      /HELP or ?  View this screen
  665.      /INF      @Sinf  Information about syntax of INSTALL.INF file
  666.      /BW       @Sbw  Run INSTALL using black and white (no colors)
  667.      /MONO       Run INSTALL on monochrome (MDA) monitors
  668.      /DOS      @Sdos  Force "text-mode" install under DOS
  669.      /WIN      @Swin  Force installation of @NameWin
  670.      /FLOPPY   @Sflp  Select DOS floppy workstation install
  671.      /REMOTE   @Snet  Select partial install to network drive
  672.      /EXTRACT  @Sext  Get @Name files from distribution disk
  673.    @FlushKeyboard() @Pause
  674.  @EndDisplay
  675.  @ChDrive( @StartupDrive )
  676.  @Exit
  677. @EndIf
  678.  
  679.  
  680. @If (@InfHelp)
  681.  @BackgroundMode(3,@Green,@Black)
  682.  @Display
  683.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  684.   @Name installation can be customized by placing a file named
  685.   INSTALL.INF on the installation diskette or in the installation
  686.   directory. The syntax of INSTALL.INF is similar to that of WIN.INI.
  687.  
  688.   If [LANtastic]  Mode=Fast, get values in [LANtastic].
  689.   If [LANtastic]  Mode=Name or Mode=ForceName, prompt for
  690.           "ComputerName", then get values in [ComputerName].
  691.   Except If [ComputerName]  Type=XXXX, get values in [XXXX].
  692.  
  693.   Mode= (fast*/name)             @Sf1    ComputerName= <15 letters>
  694.   Type= <header>                 @Sf2    Logouts= <number>
  695.   InstallPath= <path>            @Sf3    ExecutePath= <path>
  696.   Share= (yes*/no)               @Sf4    Windows= (yes/no*)
  697.   InstallServices= (yes/no*)     @Sf5    Logins= <number>
  698.   Ncp= (yes/no*)                 @Sf6    Smb= (yes/no*)
  699.   Mail= (yes/client/po/net/no*)  @Sf7    POname= <30 letters>
  700.   Connect= (yes/no*)             @Sf8    SyncMail= (yes*/no)
  701.   Drive1=   Drive2=   <computer name>,<drive name>,<drive letter>
  702.   Printer1= Printer2= <computer name>,<printer name>,<printer port>
  703.   @FlushKeyboard() @Pause
  704.  @EndDisplay
  705.  @ChDrive( @StartupDrive )
  706.  @Exit
  707. @EndIf
  708.  
  709.  
  710. @If (@ToFloppyOK)
  711.   @EnvLanCfg = ""
  712.   @EnvLanDir = ""
  713. @EndIf
  714.  
  715. @If (@StrLen(@EnvLanCfg) < 2)
  716.   @EnvLanCfg = @StrToken(@EnvLanDir,0,".")
  717.   @If (@StrLen(@EnvLanCfg) < 2)
  718.     @If ("@Subdir" == "")
  719.        @EnvLanCfg = "@DefaultNetPath"
  720.     @Else
  721.        @EnvLanCfg = "@OutDrive:\\@Subdir"
  722.     @EndIf
  723.   @EndIf
  724.   @Subdir = "@StrMid(@EnvLanCfg,2,100)"
  725. @Else
  726.   @s1 = @EnvLanCfg
  727.   @If ("@StrMid("@s1",1,1)" == ":")
  728.     @d = (@StrIndex(@s1,0))
  729.     @If (@DriveExists(@d))
  730.       @OutDrive = @d
  731.     @EndIf
  732.     @Subdir = "@StrMid(@s1,2,100)"
  733.   @Else
  734.     @Subdir = "@s1"
  735.   @EndIf
  736. @EndIf
  737.  
  738. @NOSdir = @GetEnv("LAN_CFG")
  739. @If (@StrLen(@NOSdir) < 2)
  740.   @If (@DirExists("@DefaultNetPath"))
  741.     @NOSdir = "@DefaultNetPath"
  742.   @Else
  743.     @NOSdir = ""
  744.   @Endif
  745. @EndIf
  746.  
  747. @CTLdir = @EnvLanDir
  748. @If (@StrLen(@CTLdir) < 2)
  749.   @If (@DirExists("@DefaultNetPath.NET"))
  750.     @CTLdir = "@DefaultNetPath.NET"
  751.   @Else
  752.     @CTLdir = ""
  753.   @Endif
  754.   @EnvLanDir = @CTLdir
  755. @EndIf
  756.  
  757. @If ((@Strlen("@NOSdir@CTLdir") > 0) && @Exists("@NOSdir\\@RedirProg"))
  758.   @DosInstalled = @True
  759.   @If (@InstallWindows)
  760.     @If ( @StrFind(@StrConvert(@NetDriver,"uc"),"LANTNET.DRV") >= 0 )
  761.   @WinInstalled = @True
  762.     @Else
  763.   @WinInstalled = @False
  764.     @EndIf
  765.   @Else
  766.     @WinInstalled = @False
  767.   @EndIf
  768. @Else
  769.   @DosInstalled = @False
  770. @EndIf
  771.  
  772. @If (@DosInstalled)
  773.   @NOSdate = @FileDate("@NOSdir\\NET.EXE")
  774.   @If (@NOSdate < @StrToDate("1993/11/01"))
  775.     @PrevNOS = @True
  776.   @Else
  777.     @If (@StrLen(@FindLines("@NOSdir\\@InstallScript","Simply LANtastic",1,20,"")) > 0)
  778.       @SimplyNOS = @True
  779.     @EndIf
  780.   @EndIf
  781. @EndIf
  782.  
  783. @If  ((@Strlen("@DefaultWPrintPort") != 4)
  784.    || (@StrFind("@ValidPorts", "@DefaultWPrintPort") < 0))
  785.    @DefaultWPrintPort = ""
  786. @EndIf
  787.  
  788.  
  789. @If (@RunWindows)
  790.   @ScriptDrive = @StartupDrive
  791.   @ScriptPath  = @StartupPath
  792. @Else
  793.   @If (@StartupDrive != @ScriptDrive)
  794.      @StartupPath  = @ScriptPath
  795.   @EndIf
  796. @EndIf
  797. @If (@DiskSize(@ScriptDrive) < 400000) @DD360 = @True @EndIf
  798.  
  799.  
  800. @i = 0
  801. @k = @StrLen("@ValidDrives")
  802. AVAIL_LOOP:
  803.   @d = (@StrIndex("@ValidDrives",@i))
  804.   @b = @True
  805.   @If (@DriveExists(@d))
  806.     @If (@DriveRemote(@d))
  807.       @ExistingRemote = "@ExistingRemote@d "
  808.     @Else
  809.       @b = @False
  810.     @EndIf
  811.   @EndIf
  812.   @If (@b)
  813.     @AvailableDrives = "@AvailableDrives@d "
  814.   @EndIf
  815.   @i = (@i + 1)
  816. @If (@i < @k) @Goto AVAIL_LOOP @EndIf
  817.  
  818. @FirstAvailable  = @StrToken("@AvailableDrives", 0)
  819. @SecondAvailable = @StrToken("@AvailableDrives", 1)
  820.  
  821. @If (@DriveExists(A) && (@ScriptDrive != A))
  822.   @If (@Removable(A)) @ExistingFloppy = "A " @EndIf
  823. @EndIf
  824. @If (@DriveExists(B) && (@ScriptDrive != B))
  825.   @If (@Removable(B)) @ExistingFloppy = "@ExistingFloppy@!B " @EndIf
  826. @EndIf
  827.  
  828.  
  829. @If (!@DriveExists(@ScriptDrive))
  830.   @Display
  831.     The drive the install program started on -- @StartupDrive: --
  832.     has a problem."
  833.     @FlushKeyboard() @Pause @Abort
  834.   @EndDisplay
  835. @Else
  836.  
  837.   @LibName = "@ScriptDrive:\\NOS.001"
  838.   @If (@Exists("@LibName"))
  839.     @HighDensity = @True
  840.     @NumDisks = 4
  841.     @If (@Exists("@StrToken(@LibName,0,".").002"))
  842.       @FromHard = @True
  843.     @Else
  844.       @FromFloppy = @True
  845.     @EndIf
  846.   @Else
  847.     @LibName = "@ScriptDrive:\\NOS360.001"
  848.     @If ((@Exists("@LibName") || @DD360) && !@InstallWindows)
  849.       @LowDensity = @True
  850.       @NumDisks = 4
  851.       @FromFloppy = @True
  852.     @Else
  853.       @LibName = ""
  854.       @MenuMode = @True
  855.     @EndIf
  856.   @EndIf
  857.  
  858.   @If (@FromFloppy) @IgnoreDiskID = @False @EndIf
  859. @EndIf
  860.  
  861. @If (@DebugMode)
  862. @BackgroundMode(3,@DebugColor,@Black)
  863. @Display @Cls
  864.   DosInstalled:     @DosInstalled
  865.   WinInstalled:     @WinInstalled  --> @WindowsPath [@WindowsDir]
  866.   PrevNOS:          @PrevNOS   (Simply? @SimplyNOS)
  867.   NOSdir:           @NOSdir
  868.   CTLdir:           @CTLdir
  869.   NOSdate:          @NOSdate = @DateToStr(@NOSdate)
  870.   NetDriver:        @NetDriver
  871.   Network Name:     @NetName
  872.   Printer Name:     @DefaultWDevice
  873.   InDrive:          @InDrive: @If (@Removable(@InDrive)) REMOVABLE @Else FIXED @EndIf @If (@DriveRemote(@StartupDrive)) NETWORK @EndIf
  874.   Startup Drive:    @StartupDrive: @If (@Removable(@StartupDrive)) REMOVABLE @Else FIXED @EndIf @If (@DriveRemote(@StartupDrive)) NETWORK @EndIf
  875.   StartupPath:      @StartupPath
  876.   ScriptDrive:      @ScriptDrive: @If (@Removable(@ScriptDrive)) REMOVABLE @Else FIXED @EndIf @If (@DriveRemote(@ScriptDrive)) NETWORK @EndIf [@DiskSize(@ScriptDrive)]
  877.   ScriptFile:       @ScriptFile  @If (@InfFileMode) Using @InstallInfo @EndIf
  878.   ProgramFile:      @ProgramFile  ~@CommandLine~
  879.   Install Revision: @RevMajor.@RevMinor.@RevSub
  880.   Memory:           @HeapAvail bytes remaining out of @HeapTotal (@RamAvail)
  881.   Available Drives  @AvailableDrives
  882.   Network Drives    @ExistingRemote  [Floppies = @ExistingFloppy]
  883.   @FlushKeyboard() @Pause
  884. @EndDisplay
  885. @EndIf
  886.  
  887.  
  888. @If (@CutVersion && !@LowDensity)
  889.   @BackgroundMode(3,@Red,@Red)
  890.   @Display
  891.      @Cls
  892.  
  893.      @Name INSTALL Version @Version.@SLverMinorMinor
  894.      The DOS-only 360K-diskette version of the install
  895.      script cannot be used with full NOS distribution.
  896.  
  897.      @FlushKeyboard() @Pause @Abort
  898.   @EndDisplay
  899. @EndIf
  900.  
  901.  
  902. @If (@MenuMode && !(@ExtractMode || @DebugMode)) @Goto MAINMENU @EndIf
  903.  
  904.  
  905. @If ((!@RunWindows) && (@MemAvail < (@MemNeeded + @MemExtra)))
  906.   @Goto MEMORY_ABORT
  907. @EndIf
  908.  
  909.  
  910. @If (@ExtractMode)
  911.   @If (@MenuMode)
  912.     @BackgroundMode(3,@Red,@Red)
  913.     @Display
  914.        @Cls
  915.  
  916.        @Name distribution library not found.
  917.        To extract @Name files, run INSTALL
  918.        from a distribution diskette or from the
  919.        Installation Services 'resource'.
  920.        @FlushKeyboard() @Pause @Abort
  921.     @EndDisplay
  922.   @EndIf
  923.   @InfFileMode = @False
  924.   @Time1 = @SystemDate
  925.   @Goto EXTRACT
  926. @EndIf
  927.  
  928.  
  929.  
  930. @If (@InfFileMode)
  931.   @PleaseWait("- Using INSTALL.INF configuration")
  932.   @InfHeader = "@Name"
  933.   @InfMode   = @StrConvert(@GetINI(@InfHeader,"Mode",@InfPath),"uc")
  934.   @ForceName = ("@InfMode" == "FORCENAME")
  935.   @If ( ("@InfMode" != "NAME") && !@ForceName )
  936.     @InfComputerName = @StrConvert(@GetINI(@InfHeader,"ComputerName",@InfPath),"uc")
  937.   @EndIf
  938. @EndIf
  939.  
  940. @If (@ToFloppyOK && ("@ExistingFloppy" == ""))
  941.   @Display
  942.    @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  943.  
  944.    You chose /FLOPPY to install @Name to a floppy
  945.    diskette but no floppy drives are available.
  946.    Ignoring the option...
  947.  
  948.    @FlushKeyboard() @Pause
  949.   @EndDisplay
  950.   @ToFloppyOK = @False
  951. @EndIf
  952. @If (@ToFloppyOK)
  953.   @DosInstalled = @False
  954.   @EnvLanCfg = ""
  955.   @EnvLanDir = ""
  956. @EndIf
  957.  
  958. @If (@ToNetworkOK && ("@ExistingRemote" == ""))
  959.   @Display
  960.    @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  961.  
  962.    You chose /REMOTE to install @Name to a network
  963.    drive but no network drives are available.
  964.    Ignoring the option...
  965.  
  966.    @FlushKeyboard() @Pause
  967.   @EndDisplay
  968.   @ToNetworkOK = @False
  969. @EndIf
  970.  
  971. @If ("@InfWindows" == "YES")
  972.   @InstallWindows = @True
  973. @ElseIf ("@InfWindows" == "NO")
  974.   @InstallWindows = @False
  975. @EndIf
  976.  
  977. @If (@InstallWindows && !@RunWindows)
  978.  @DosHeadingColor = 94
  979.  
  980.  @If (@DD360 || @Exists("@ScriptDrive:\\SL360.001"))
  981.   @Display
  982.    @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  983.  
  984.    The /WIN option to force installation of @NameWin
  985.    is not supported from 360K DD distribution diskettes.
  986.    Only @Name for DOS can be installed from these
  987.    diskettes.
  988.  
  989.    @FlushKeyboard() @Pause  @Exit
  990.   @EndDisplay
  991.  @EndIf
  992.  
  993.  @If (@CPU < 286)
  994.   @Display
  995.    @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  996.  
  997.    The /WIN option to force installation of @NameWin
  998.    is not supported on 8086 or 8088 computers.
  999.    Only @Name for DOS can be installed here.
  1000.  
  1001.    @FlushKeyboard() @Pause  @Exit
  1002.   @EndDisplay
  1003.  @EndIf
  1004.  
  1005.  @If (@DirExists("@WindowsPath") && @Exists("@WindowsPath\\WIN.COM")
  1006.    && @Exists("@WindowsPath\\WIN.INI") && @Exists("@WindowsPath\\SYSTEM.INI"))
  1007.  @Else
  1008.   @Display
  1009.     @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1010.  
  1011.     Windows does not appear to be installed on your computer.
  1012.     To install @NameWin, you must first install
  1013.     Windows.  Or install @Name for DOS now, then install
  1014.     @NameWin later after Windows is running on
  1015.     your computer.
  1016.  
  1017.     @FlushKeyboard() @Pause @Exit
  1018.   @EndDisplay
  1019.  @EndIf
  1020. @EndIf
  1021.  
  1022. @Time1 = @SystemDate
  1023. @If (@InfFileMode) @Goto INSTALL @EndIf
  1024.  
  1025.  
  1026. @BackgroundMode(3,@WinColor,@Black)
  1027.  
  1028. @If (!@DosInstalled)
  1029. @Display
  1030.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1031.  
  1032.   Congratulations!  You have purchased @Name @Registered Version @Version!
  1033.   We at Artisoft feel it is the most complete Network Operating
  1034.   System (NOS) software available for DOS and Windows@Trademark.
  1035.   You can use @Name for simple file and printer sharing, but it
  1036.   is equally suited to setting up complex networks with security,
  1037.   auditing, and electronic mail.
  1038.  
  1039.   @If (@RunWindows)@!To continue, click on  "OK". @EndIf
  1040.  
  1041.   Copyright @Copyright 1994 by Artisoft, Inc.
  1042.   @FlushKeyboard() @Pause
  1043. @Enddisplay
  1044. @EndIf
  1045.  
  1046.  
  1047. @BackgroundMode(3,@WinColor,@Black)
  1048.  
  1049. @Display
  1050.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1051.  @If (@DosInstalled)
  1052.   @Name@Registered  Version @Version  Copyright @Copyright 1994 by Artisoft, Inc.
  1053.   @Underline40@Underline20
  1054.   You are installing @Name Version @Version onto your computer,
  1055.   which already has a copy of @Name on it. You will be asked
  1056.   a few questions about how you would like to set up @Name.
  1057.   We suggest that you accept the default answers.
  1058.  @Else This program will begin to install @Name onto your computer.
  1059.   @Underline40@Underline20
  1060.   You will be asked a few questions about how you would like to set
  1061.   up @Name.  We suggest that you accept the default answers.
  1062.  
  1063.   Your installation will go more smoothly if you know ahead of time the
  1064.   names you want to give your computers and the drives and printers
  1065.   that are available on each one.
  1066.  @EndIf
  1067.   Please remember that after you successfully install the @Name
  1068.   software, you will need to REBOOT your computer.
  1069. @If (@RunWindows)@!@Underline40@Underline20
  1070.   Note:  You can quit the @Name Installation at any time by
  1071.   clicking on  "CANCEL".  Or you can accept whatever selection
  1072.   you have made on the current screen by clicking on  "OK".
  1073. @EndIf @FlushKeyboard() @Pause
  1074. @EndDisplay
  1075.  
  1076.  
  1077. @If (!@MenuMode) @Goto INSTALL @EndIf
  1078.  
  1079. MAINMENU:
  1080.  
  1081. @If (@RunWindows)
  1082.   @Delete("@WindowsPath\\LOAD.EXE")
  1083. @EndIf
  1084.  
  1085. @NewInstall = ("@FindLines("@EnvLanCfg\\STARTNET.BAT","DISABLED",4,20,"W")" != "")
  1086. @NetEnabled = (!@Exists("@EnvLanCfg\\@DisabledFile"))
  1087.  
  1088. @Share= (@Exists("@EnvLanCfg\\@ServerProg") && @NewInstall)
  1089. @ShareEnabled = (!@Exists("@EnvLanCfg\\@NoShareFile"))
  1090.  
  1091. @WinColor = @Blue
  1092. @DosHeadingColor = 15
  1093. @BackgroundMode(3,@WinColor,@Black)
  1094.  
  1095. @ArtiDocMode = @Exists("@EnvLanCfg\\@ArtiDocDir")
  1096. @If (@DebugMode) @t = 7 @b = 11 @Else @t = 7 @b = 10 @EndIf
  1097. @If (@ArtiDocMode) @b = (@b + 1) @EndIf
  1098. @If (@NewInstall) @b = (@b + 1) @EndIf
  1099. @If (@Share) @b = (@b + 3) @EndIf
  1100. @DlgCtrlSize(0,@t,0,@b,66)
  1101.  
  1102. @ClearOption(100)
  1103. @ClearOption(400)
  1104. @ClearOption(500)
  1105. @ClearOption(600)
  1106. @ClearOption(700)
  1107. @ClearOption(800)
  1108. @ClearOption(801)
  1109. @ClearOption(900)
  1110. @ClearOption(901)
  1111.  
  1112. @DlgCtrlSize(0,@t,0,@b,60) @FlushKeyboard()
  1113.  
  1114. @GetOption @Prompt = "---- SETUP MENU ----"
  1115.  @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText) @If (!@RunWindows) @LOCALWINDOW(12,40) @Endif
  1116.  @If (@DebugMode)
  1117.   Proceed with the installation of @Name by selecting
  1118.   "INSTALL" below.  Or choose one of the other functions...
  1119.  @Else
  1120.   @If (!@RunWindows)                          ▓▓▓▓ SETUP MENU ▓▓▓▓
  1121.  
  1122.   @Endif @If ("@EnvLanCfg" != "")             >> @Name Directory is @EnvLanCfg @EndIf
  1123.   @If ("@EnvLanDir" != "")              >> Control Directory is @EnvLanDir @EndIf
  1124.  
  1125.                 Select one of these actions: @EndIf
  1126.  @If (@DebugMode)   @Option 100 = "INSTALL...@S100 @Name onto My Computer" @EndIf
  1127.  @If (@Share)       @Option 400 = "ADD...    @S400 @Name Default Resources"
  1128.                     @Option 500 = "RESET...  @S500 @Name Control Directory" @EndIf
  1129.                     @Option 600 = "VIEW....  @S600 Information About My Computer"
  1130.  @If (@ArtiDocMode) @Option 700 = "READ....  @S700 @Name On-line Documentation" @EndIf
  1131.  @If (@NewInstall)
  1132.   @If (@NetEnabled) @Option 800 = "DISABLE...@S800 @Name on Next Reboot"
  1133.   @Else             @Option 801 = "ENABLE... @S801 @Name on Next Reboot" @EndIf @EndIf
  1134.  @If (@Share)
  1135.   @If (@ShareEnabled) @Option 900 = "DISABLE...@S900 Server on Next Reboot (to stop sharing)"
  1136.   @Else             @Option 901 = "ENABLE... @S901 Server on Next Reboot (to share your files)" @EndIf @EndIf
  1137.                     @Option 999 = "EXIT....  @S999 from @Name Setup"
  1138. @EndOption
  1139.  
  1140. @If      (100 [= @Option) @WinColor = @Red     @Goto INSTALL
  1141. @ElseIf  (400 [= @Option) @WinColor = @Grey @Add = @True  @Goto INITIALIZE_RESOURCES
  1142. @ElseIf  (500 [= @Option) @WinColor = @Grey @Add = @False @Goto INITIALIZE_RESOURCES
  1143. @ElseIf  (600 [= @Option) @WinColor = @Magenta @Goto CONFIGURATION
  1144. @ElseIf  (700 [= @Option) @WinColor = @Magenta @Goto ARTI_DOC
  1145. @ElseIf  (800 [= @Option) @Goto ENABLE_DISABLE_NET
  1146. @ElseIf  (801 [= @Option) @Goto ENABLE_DISABLE_NET
  1147. @ElseIf  (900 [= @Option) @Goto DISABLE_SHARE
  1148. @ElseIf  (901 [= @Option) @Goto ENABLE_SHARE
  1149. @ElseIf  (999 [= @Option) @Exit
  1150. @EndIf
  1151.  
  1152. @Goto MAINMENU
  1153.  
  1154.  
  1155. ENABLE_SHARE:
  1156. @Delete("@EnvLanCfg\\@NoShareFile")
  1157. @Goto MAINMENU
  1158.  
  1159. DISABLE_SHARE:
  1160. @Write("@EnvLanCfg\\@NoShareFile", "wt", "Sharing disabled @DateToStr(@SystemDate)\n")
  1161. @Goto MAINMENU
  1162.  
  1163. ENABLE_DISABLE_NET:
  1164. @If (@InstallWindows)
  1165.   @x1 = "@GetINI("windows","load","win.ini")"
  1166.   @x1 = @StrTrim("@x1")
  1167.   @x2 = "WNET"
  1168.   @s3 = ""
  1169.   @If (@Strlen(@x1) <= 0) @Goto MMSCAN_DONE @EndIf
  1170.  
  1171.   @i = 0
  1172. MMSCAN_WNET:
  1173.   @x3 = @StrToken(@x1,@i)
  1174.   @If (@Strlen(@x3) <= 0) @Goto MMSCAN_DONE @EndIf
  1175.  
  1176.   @If (@StrFind(@x3,@x2) == -1)
  1177.     @If (("@s3" == "") || ("@x3" == "")) @x4 = "" @Else @x4 = " " @EndIf
  1178.     @s3 = "@s3@!@x4@!@x3"
  1179.   @EndIf
  1180.   @i = (@i + 1)
  1181.   @Goto MMSCAN_WNET
  1182.  
  1183. MMSCAN_DONE:
  1184.   @If ("@s3" != "") @s3 = "@s3 " @EndIf
  1185. @EndIf
  1186.  
  1187. @If (801 [= @Option) @Goto ENABLE_NET @EndIf
  1188.  
  1189. DISABLE_NET:
  1190.  
  1191. @Write("@EnvLanCfg\\@DisabledFile", "wt", "@Name disabled @DateToStr(@SystemDate)\n")
  1192.  
  1193. @If (@InstallWindows)
  1194.   @SetINI("boot.description","network.drv"," ","system.ini")
  1195.   @SetINI("boot","network.drv"," ","system.ini")
  1196.   @SetINI("386Enh","network"," ","system.ini")
  1197.  
  1198.   @SetINI("windows","load","@s3","win.ini")
  1199.   @SetINI("windows","spooler","yes","win.ini")
  1200. @EndIf
  1201. @Goto MAINMENU
  1202.  
  1203. ENABLE_NET:
  1204.  
  1205. @If (@InstallWindows)
  1206.   @SetINI("boot.description","network.drv",
  1207.       "@NameWin Version @Version","system.ini")
  1208.   @SetINI("boot","network.drv",
  1209.      "@EnvLanCfg\\LANTNET.DRV","system.ini")
  1210.   @SetINI("386Enh","network",
  1211.      "*vnetbios,@EnvLanCfg\\LANTASTI.386","system.ini")
  1212.  
  1213.   @SetINI("windows","load","@s3@!@EnvLanCfg\\WNET.EXE","win.ini")
  1214.   @SetINI("windows","spooler","no","win.ini")
  1215. @EndIf
  1216.  
  1217. @Delete("@EnvLanCfg\\@DisabledFile")
  1218. @Goto MAINMENU
  1219.  
  1220. CONFIGURATION:
  1221.  
  1222.  
  1223. @BackgroundMode(3,@WinColor,@Black)
  1224.  
  1225. @If(@RunWindows)
  1226. @Display
  1227. Configuration of Your @cpu-based Windows Computer:
  1228.  
  1229. Your processor is an ............................. 80@CPU
  1230. Your co-processor is ............................. @If(@NDP)@!PRESENT @Else@!NOT PRESENT @EndIf
  1231. Total DOS memory ................................ @Eval(@RAMTotal/1024)K  (@Eval(@RAMAvail/1024))
  1232. Total EXT memory ................................. @If (@CPU < 286)@!NONE @Else@!@Eval(@EXTTotal/1024)K  (@Eval(@EXTAvail/1024)) @EndIf
  1233. Total EMS memory ................................. @Eval(@EMMTotal/1024)K  (@Eval(@EMMAvail/1024))
  1234. Drive @OutDrive: is .............................................. @If(@Removable(@OutDrive))@!REMOVABLE @Else@!NON-REMOVABLE @EndIf
  1235. Drive @OutDrive: formatted capacity ................... @Eval(@DiskSize(@OutDrive)/1024000) Megs
  1236. Drive @OutDrive: free space remaining ............... @Eval(@DiskFree(@OutDrive)/1024000) Megs
  1237. CD-ROM Drive ....................................... @If(@CDRomTotal < 1)@!NOT PRESENT @Else @CDRomFirst@!: Driver @If(@CDRomMajor == 0)@!NOT PRESENT @Else @CDRomMajor.@CDRomMinor@! @EndIf@!@EndIf
  1238. DOS version .......................................... @OSMajor.@OSMinor
  1239. Windows version .................................. @WindowsMajor.@WindowsMinor
  1240. Windows is located in ........................... @WindowsPath
  1241. Windows current mode of operation ..... @If(@WindowsMode == 1)@!STANDARD @ElseIf(@WindowsMode == 2)@!ENHANCED @Else@!REAL @EndIf
  1242. True Type Fonts are .............................. @If("@TTEnable" == "1")@!ENABLED @else@!DISABLED @EndIf
  1243. Mouse Driver is .................................... @MDriver
  1244. Network Driver is .................................. @If(@StrLen("@NetDriver") < 1)@!NOT INSTALLED @Else@!@NetDriver @EndIf
  1245. Display Driver ....................................... @DispDriver [Screen Saver @If ("@ScreenSave" == "1") ON] @Else OFF] @EndIf
  1246. Printer Driver ....................................... @DefaultWDevice
  1247. SHELL is ............................................... @WinShell
  1248. @FlushKeyboard() @Pause
  1249. @EndDisplay
  1250. @Else
  1251.  
  1252. @Display
  1253.  @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1254.  
  1255.  Configuration of Your @cpu-based DOS Computer:
  1256.  
  1257.  Your processor is an ............................. 80@CPU
  1258.  Your co-processor is ............................. @If(@NDP)@!PRESENT @Else@!NOT PRESENT @EndIf
  1259.  Total DOS memory ................................. @Eval(@RAMTotal/1024)K  (@Eval(@RAMAvail/1024))
  1260.  Total EXT memory ................................. @If (@CPU < 286)@!NONE @Else@!@Eval(@EXTTotal/1024)K  (@Eval(@EXTAvail/1024)) @EndIf
  1261.  Total EMS memory ................................. @Eval(@EMMTotal/1024)K  (@Eval(@EMMAvail/1024))
  1262.  Drive @OutDrive: is ...................................... @If(@Removable(@outdrive))@!REMOVABLE @Else@!NON-REMOVABLE @EndIf
  1263.  Drive @OutDrive: formatted capacity ...................... @Eval(@DiskSize(@outdrive)/1024000) Megs
  1264.  Drive @OutDrive: free space remaining .................... @Eval(@DiskFree(@outdrive)/1024000) Megs
  1265.  CD-ROM Drive ..................................... @If(@CDRomTotal < 1)@!NOT PRESENT @Else@!@CDRomFirst@!: Driver @If(@CDRomMajor == 0)@!NOT PRESENT @Else @CDRomMajor.@CDRomMinor@! @EndIf@!@EndIf
  1266.  DOS version ...................................... @OSMajor.@OSMinor
  1267.  Windows version .................................. @If("@GetEnv("windir")" == "")@!NOT RUNNING @Else@!DOS BOX @EndIf
  1268.  @FlushKeyboard() @Pause
  1269. @EndDisplay
  1270.  
  1271. @EndIf
  1272.  
  1273. @Goto MAINMENU
  1274.  
  1275. INITIALIZE_RESOURCES:
  1276. @BackgroundMode(3,@WinColor,@Black)
  1277.  
  1278. @If ("@EnvLanDir" == "")
  1279.   @If ("@EnvLanCfg" == "")
  1280.     @If ("@Subdir" == "")
  1281.        @EnvLanCfg = "@DefaultNetPath"
  1282.     @Else
  1283.        @EnvLanCfg = "@Subdir"
  1284.     @EndIf
  1285.   @EndIf
  1286.   @EnvLanDir = "@StrToken(@EnvLanCfg,0,".").NET"
  1287. @EndIf
  1288. @If ("@EnvLanCfg" == "")
  1289.   @EnvLanCfg = @StrToken(@EnvLanDir,0,".")
  1290. @EndIf
  1291.  
  1292. @Display
  1293.   @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1294. @If (@Add)
  1295.   Add default resources to the Control Directory
  1296.   at the "@EnvLanDir" path.  This will also
  1297.   restore existing default resources to their original
  1298.   settings and add a wildcard account.  To add security
  1299.   to these resources and to the wildcard account once
  1300.   they are created, use the NET_MGR program.
  1301. @Else
  1302.   Initialize Control Directory for shared drives and
  1303.   printers  at the "@EnvLanDir" path.
  1304.  
  1305.   This will run the program @InitControlProg to create
  1306.   and initialize the control directory.  Any existing
  1307.   accounts and resources will be lost.
  1308.  
  1309.   Please do NOT do this unless something is wrong with
  1310.   your current Control Directory.
  1311. @EndIf
  1312.   If you do NOT want to do this, @If (@RunWindows)@!click on  "CANCEL"  @Else@!press  "ESC"  @Endif@!now.
  1313.   @FlushKeyboard() @Pause
  1314. @EndDisplay
  1315.  
  1316. @ComputerName = "80@CPU"
  1317. @s6 = "@EnvLanCfg\\@InitControlProg"
  1318. @s7 = "@s6 -A -n@ComputerName -c@EnvLanDir -p@EnvLanCfg @InitControlArg"
  1319. @If (!@Add) @s7 = "-O @s7" @EndIf
  1320.  
  1321. @If (@Exists(@s6))
  1322.   @If (@RunWindows)
  1323.  
  1324.     @WINEXEC(@s7,2)
  1325.     @Delay(2)
  1326.   @Else
  1327.     @If (@SPAWN(@s7) != 0)
  1328.       @Display
  1329.  
  1330.   Unable to initialize @Name Control Directory.
  1331.  
  1332.   (@MemAvail@!K of memory available)
  1333.        @FlushKeyboard() @Pause
  1334.       @EndDisplay
  1335.     @EndIf
  1336.   @EndIf
  1337. @Else
  1338.   @BackgroundMode(3,@Red,@Red)
  1339.   @Display
  1340.  
  1341.      Unable to initialize @Name Control Directory.
  1342.  
  1343.      The program @InitControlProg was not found in @EnvLanCfg.
  1344.      @FlushKeyboard() @Pause
  1345.   @EndDisplay
  1346. @EndIf
  1347.  
  1348. @Goto MAINMENU
  1349.  
  1350. ARTI_DOC:
  1351. @BackgroundMode(3,@WinColor,@Black)
  1352.  
  1353. @s1 = "@EnvLanCfg\\@ArtiDocDir\\@ArtiDocProg"
  1354.  
  1355. @If (@Exists(@s1))
  1356.   @ChDir("@EnvLanCfg\\@ArtiDocDir")
  1357.   @If (@RunWindows)
  1358.     @WINEXEC(@s1,1)
  1359.     @Display
  1360.  
  1361.      Artidocs On-Line Documentation Viewer
  1362.  
  1363.      Click on  "OK"  to return to Setup Menu.
  1364.      @FlushKeyboard() @Pause
  1365.     @EndDisplay
  1366.   @Else
  1367.     @If (@SPAWN("@s1") != 0)
  1368.      @Display
  1369.  
  1370.  Unable to run Artidocs On-Line Documentation Viewer
  1371.  
  1372.  (@MemAvail@!K of memory available)
  1373.       @FlushKeyboard() @Pause
  1374.      @EndDisplay
  1375.     @EndIf
  1376.   @EndIf
  1377.   @ChDir("@StartupPath")
  1378. @EndIf
  1379.  
  1380. @Goto MAINMENU
  1381.  
  1382. EXTRACT:
  1383. @InstallMode  = @False
  1384.  
  1385.  
  1386. @FlushOptions()
  1387.  
  1388. @ChangeSystemFiles = @False
  1389.  
  1390. @ToFloppy  = @False
  1391. @ToHard    = @False
  1392. @ToNetwork = @False
  1393.  
  1394. @BackgroundMode(3,@WinColor,@Black)
  1395. @DlgCtrlSize(0,7,15,11,30) @FlushKeyboard()
  1396.  
  1397. @GetOutDrive @OutDrive @Prompt = "Enter target drive"
  1398.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1399.   @If(!@RunWindows) @LOCALWINDOW(14,39) @EndIf
  1400.   @If (@ToFloppyOK) @Suppress(0,(16+4)) @ElseIf (@ToNetworkOK) @Suppress(0,(16+1)) @Else @Suppress(0,(16+4+1)) @EndIf @If (@Removable(@ScriptDrive)) @Suppress(@ScriptDrive) @EndIf
  1401.   You have chosen to "extract" files from the @Name distribution
  1402.   disk.  Please select the drive where you want @Name files
  1403.   to be loaded on your computer.
  1404. @EndOutDrive
  1405.  
  1406. @Goto NEWDIR
  1407.  
  1408. INSTALL:
  1409. @InstallMode = @True
  1410. @AlreadyKeep = @False
  1411.  
  1412.  
  1413. @FlushOptions()
  1414.  
  1415. @ChangeSystemFiles = @True
  1416.  
  1417. @ToFloppy  = @False
  1418. @ToHard    = @False
  1419. @ToNetwork = @False
  1420.  
  1421. @If (@ToFloppyOK || !@DosInstalled)
  1422.   @KeepInstall = @False
  1423.   @NewInstall = @True
  1424.   @Goto CHECK_DONE
  1425. @EndIf
  1426.  
  1427.  
  1428.  
  1429. ASK_KEEP:
  1430.  
  1431. @If (@WinInstalled)
  1432.   @s1 = "@NetName"
  1433. @Else
  1434.   @If (@PrevNOS)
  1435.     @s1 = "a prior version of LANtastic"
  1436.   @ElseIf (@SimplyNOS)
  1437.      @s1 = "Simply LANtastic"
  1438.   @Else
  1439.     @s1 = "@Name for DOS"
  1440.   @EndIf
  1441. @EndIf
  1442.  
  1443. @If (@InstallWindows && !@WinInstalled)
  1444.    @s2 = "\n  @NameWin will also be installed on your computer."
  1445. @Else
  1446.    @s2 = ""
  1447. @EndIf
  1448.  
  1449. @If (@RunWindows) @s3 = "" @Else @s3 = "\n  " @EndIf
  1450.  
  1451.  
  1452. @If (@KeepInstall) @SetOption(11)
  1453. @Else @SetOption(12) @EndIf
  1454.  
  1455. @BackgroundMode(3,@WinColor,@Black)
  1456. @DlgCtrlSize(0,17,1,20,58) @FlushKeyboard()
  1457.  
  1458. @GetOption @Prompt = "Keep or replace current @Name settings?"
  1459.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText) @If(!@RunWindows) @LOCALWINDOW(21,40) @EndIf
  1460.   @s3@!INSTALL found @s1 on your
  1461.   computer.  You can  "KEEP"  all of your current @Name settings
  1462.   or  "REPLACE"  them with new settings generated by this INSTALL.
  1463.  
  1464.   If you choose  "KEEP", no changes will be made to STARTNET.BAT or
  1465.   any system files such as AUTOEXEC.BAT or CONFIG.SYS.  Accounts,
  1466.   resources, and the "server" configuration also will be preserved.
  1467.  
  1468.   Choosing "REPLACE" creates a new STARTNET.BAT and changes
  1469.   CONFIG.SYS and AUTOEXEC.BAT after saving the original versions.
  1470.   Accounts, resources and the "server" configuration will be preserved
  1471.   but you must merge special setup information (such as multiple
  1472.   adapter configuration or non-default adapter driver settings) into
  1473.   the new STARTNET.BAT using a text editor.
  1474.   @s2
  1475.   @Option 11  = "KEEP     all previous @Name setup information"
  1476.   @Option 12  = "REPLACE  existing @Name setup with \"new style\""
  1477. @EndOption
  1478.  
  1479. @NewInstall = @True
  1480. @KeepInstall = @False
  1481. @ChangeSystemFiles = @True
  1482. @AlreadyKeep = @True
  1483.  
  1484. @If (11 [= @Option)
  1485.   @NewInstall = @False
  1486.   @KeepInstall = @True
  1487.   @ChangeSystemFiles = @False
  1488.   @InfFileMode = @False
  1489. @EndIf
  1490.  
  1491. @If (@KeepInstall)
  1492.   @If ("@StrMid("@EnvLanCfg",1,1)" == ":")
  1493.     @d = (@StrIndex(@EnvLanCfg,0))
  1494.     @If (@DriveExists(@d))
  1495.       @OutDrive = @d
  1496.     @Else
  1497.       @Display
  1498.       W A R N I N G
  1499.  
  1500.       Drive @d is not available!  Using C:
  1501.       @FlushKeyboard() @Pause
  1502.       @EndDisplay
  1503.       @OutDrive = C
  1504.     @EndIf
  1505.     @Subdir = "@StrMid(@EnvLanCfg,2,100)"
  1506.   @Else
  1507.     @Subdir = "@EnvLanCfg"
  1508.   @EndIf
  1509.   @InstallDir = "@Subdir"
  1510. @EndIf
  1511.  
  1512. @PleaseWait("- Looking up computer name")
  1513.  
  1514. @If ("@ComputerName" == "")
  1515.   @s1 = @FindLines("@BootDrive:\\AUTOEXEC.BAT","REDIR",1,100,"IW")
  1516.   @If ("@s1" != "")
  1517.     @s3 = @StrConvert(@s1,"uc")
  1518.     @i = @StrFind(@s3,"REDIR")
  1519.     @s5 = @StrMid(@s3,@i,30)
  1520.     @ComputerName = @StrToken(@s5,1," ~")
  1521.   @Else
  1522.     @s2 = @FindLines("@EnvLanCfg\\STARTNET.BAT","REDIR",1,100,"IW")
  1523.     @If ("@s2" != "")
  1524.       @s4 = @StrConvert(@s2,"uc")
  1525.       @i = @StrFind(@s4,"REDIR")
  1526.       @s6 = @StrMid(@s4,@i,30)
  1527.       @ComputerName = @StrToken(@s6,1," ~")
  1528.     @EndIf
  1529.   @EndIf
  1530.   @If (("@StrHead(@ComputerName,1)" == "%")
  1531.      && ("@StrTail(@ComputerName,1)" == "%"))
  1532.     @i = (@StrLen(@ComputerName) - 2)
  1533.     @If (@i > 0)
  1534.       @ComputerName = @GetEnv("@StrMid(@ComputerName,1,@i)")
  1535.     @Else
  1536.       @ComputerName = ""
  1537.     @EndIf
  1538.   @EndIf
  1539. @EndIf
  1540.  
  1541. CHECK_DONE:
  1542.  
  1543.  
  1544. COMPUTER_NAME:
  1545.  
  1546. @If ((@KeepInstall) && ("@ComputerName" != ""))
  1547.   @Goto NAME_DONE
  1548. @EndIf
  1549.  
  1550. @If (@InfFileMode && ("@InfComputerName" != ""))
  1551.   @ComputerName = "@InfComputerName"
  1552.   @Goto NAME_DONE
  1553. @EndIf
  1554.  
  1555. @BackgroundMode(3,@WinColor,@Black)
  1556. @DlgCtrlSize(0,12,2,13,30) @FlushKeyboard()
  1557.  
  1558. @GetString @ComputerName
  1559.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1560.  
  1561.     Each computer in the @Name network requires a
  1562.     name.  No two names in one network should be the same.
  1563.     Usually, people use some variation of their own name
  1564.     for their computer.  Or computers could be named by
  1565.     location (e.g. UPSTAIRS) or function (e.g. GAMES).
  1566.     Please name your computer now with a word containing
  1567.     up to fifteen letters with no spaces.
  1568.  
  1569.     @PromptName
  1570.     @Prompt = "Enter computer name"
  1571. @EndString
  1572.  
  1573. @If (@StrLen(@ComputerName) < 1)
  1574.   @PromptName = ">>> You need to enter a name for your computer.<<<"
  1575.   @Goto COMPUTER_NAME
  1576. @ElseIf (@StrLen(@ComputerName) > 15)
  1577.   @PromptName = ">>> The name you typed was longer than 15 letters.<<<"
  1578.   @Goto COMPUTER_NAME
  1579. @ElseIf (@StrFind(@ComputerName," ") >= 0)
  1580.   @PromptName = ">>> The name you typed contained spaces.<<<"
  1581.   @Goto COMPUTER_NAME
  1582. @ElseIf (@StrFind("@Illegal","@ComputerName") >= 0)
  1583.   @PromptName = ">>> The character  @ComputerName  is not allowed.<<<"
  1584.   @Goto COMPUTER_NAME
  1585. @ElseIf (@StrLen("@StrToken("@ComputerName",1,"@Illegal")") > 0)
  1586.   @s9 = @StrMid("@ComputerName",@StrLen("@StrToken("@ComputerName",0,"@Illegal")"),1)
  1587.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  1588.   @PromptName = ">>> The character  @s9  is not allowed.<<<"
  1589.   @Goto COMPUTER_NAME
  1590. @ElseIf ("@StrToken("@ComputerName",0,"@Illegal")" != "@ComputerName")
  1591.   @PromptName = ">>>@BadChar<<<"
  1592.   @Goto COMPUTER_NAME
  1593. @ElseIf (@InfFileMode && @ForceName)
  1594.   @If ("@FindText(@InfPath,"[@ComputerName]","IW")" == "")
  1595.     @PromptName = ">>> See your system administrator for a valid name.<<<"
  1596.     @Goto COMPUTER_NAME
  1597.   @EndIf
  1598. @EndIf
  1599.  
  1600. NAME_DONE:
  1601. @PromptName = ""
  1602. @ComputerName = @StrConvert("@ComputerName","uc")
  1603.  
  1604. @If (@InfFileMode && ("@InfHeader" != ""))
  1605.   @If (("@InfMode" == "NAME") || @ForceName) @InfHeader = @ComputerName @EndIf
  1606.   @InfType = @StrConvert(@GetINI(@InfHeader,"Type",@InfPath),"uc")
  1607.   @If ("@InfType" != "") @InfHeader = @InfType @EndIf
  1608.  
  1609.   @InfInstallPath = @StrConvert(@GetINI(@InfHeader,"InstallPath",@InfPath),"uc")
  1610.   @InfExecutePath = @StrConvert(@GetINI(@InfHeader,"ExecutePath",@InfPath),"uc")
  1611.   @InfWindows  = @StrConvert(@GetINI(@InfHeader,"Windows",@InfPath),"uc")
  1612.   @InfShare    = @StrConvert(@GetINI(@InfHeader,"Share",@InfPath),"uc")
  1613.   @InfLogouts  = @StrConvert(@GetINI(@InfHeader,"Logouts",@InfPath),"uc")
  1614.   @InfLogins   = @StrConvert(@GetINI(@InfHeader,"Logins",@InfPath),"uc")
  1615.   @InfMail     = @StrConvert(@GetINI(@InfHeader,"Mail",@InfPath),"uc")
  1616.   @InfPOname   = @StrConvert(@GetINI(@InfHeader,"POname",@InfPath),"uc")
  1617.   @InfSyncMail = @StrConvert(@GetINI(@InfHeader,"SyncMail",@InfPath),"uc")
  1618.   @InfNcp      = @StrConvert(@GetINI(@InfHeader,"Ncp",@InfPath),"uc")
  1619.   @InfSmb      = @StrConvert(@GetINI(@InfHeader,"Smb",@InfPath),"uc")
  1620.   @InfInstallServices = @StrConvert(@GetINI(@InfHeader,"InstallServices",@InfPath),"uc")
  1621.   @InfChangeSystemFiles = @StrConvert(@GetINI(@InfHeader,"ChangeSystemFiles",@InfPath),"uc")
  1622.   @InfConnect  = @StrConvert(@GetINI(@InfHeader,"Connect",@InfPath),"uc")
  1623.   @If ("@InfConnect" == "YES")
  1624.     @InfDrive1   = @StrConvert(@GetINI(@InfHeader,"Drive1",@InfPath),"uc")
  1625.     @InfDrive2   = @StrConvert(@GetINI(@InfHeader,"Drive2",@InfPath),"uc")
  1626.     @InfPrinter1 = @StrConvert(@GetINI(@InfHeader,"Printer1",@InfPath),"uc")
  1627.     @InfPrinter2 = @StrConvert(@GetINI(@InfHeader,"Printer2",@InfPath),"uc")
  1628.   @EndIf
  1629.  
  1630.   @If ("@InfChangeSystemFiles" == "YES")
  1631.     @ChangeSystemFiles = @True
  1632.   @ElseIf ("@InfChangeSystemFiles" == "NO")
  1633.     @ChangeSystemFiles = @False
  1634.   @EndIf
  1635. @EndIf
  1636.  
  1637.  
  1638.  
  1639. NEWDRIVE:
  1640.  
  1641. @If (@KeepInstall)
  1642.   @Goto PATH_DONE
  1643. @EndIf
  1644.  
  1645. @If (@InfFileMode && ("@InfInstallPath" != ""))
  1646.   @If ("@StrMid("@InfInstallPath",1,1)" == ":")
  1647.     @d = (@StrIndex(@InfInstallPath,0))
  1648.     @If (!@DriveExists(@d))
  1649.       @InfInstallPath = ""
  1650.       @Goto NEWDRIVE
  1651.     @EndIf
  1652.     @OutDrive = @d
  1653.     @Subdir = "@StrMid(@InfInstallPath,2,100)"
  1654.   @Else
  1655.     @Subdir = "@InfInstallPath"
  1656.   @EndIf
  1657.   @InstallDir = "@Subdir"
  1658.   @Goto PATH_DONE
  1659. @EndIf
  1660.  
  1661. @If (@RunWindows) @s1 = "" @Else @s1 = "          " @EndIf
  1662. @s2 = "Please select the drive where you want @Name to be"
  1663. @s3 = "installed on your computer.  Any available drive can"
  1664. @If (@ToFloppyOK)
  1665.   @s2 = "Please select the floppy drive where you want"
  1666.   @s3 = "@Name DOS workstation files to be installed."
  1667.   @s4 = ""
  1668. @ElseIf (@ToNetworkOK)
  1669.   @s4 = "be used.  The current network drives are: @ExistingRemote"
  1670. @Else
  1671.   @s4 = "be used, but we suggest Drive C:"
  1672. @EndIf
  1673.  
  1674. @BackgroundMode(3,@WinColor,@Black)
  1675. @DlgCtrlSize(0,7,15,12,30) @FlushKeyboard()
  1676.  
  1677. @GetOutDrive @OutDrive @Prompt = "Enter target drive"
  1678.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText) @If(!@RunWindows) @LOCALWINDOW(11,40) @EndIf
  1679.   @If (@ToFloppyOK) @Suppress(0,(16+2)) @ElseIf (@ToNetworkOK) @Suppress(0,(16+1)) @Else @Suppress(0,(16+4+1)) @EndIf @If (@Removable(@ScriptDrive)) @Suppress(@ScriptDrive) @EndIf
  1680.   @s1@!@s2
  1681.   @s1@!@s3
  1682.   @s1@!@s4
  1683. @EndOutDrive
  1684.  
  1685.  
  1686.  
  1687. NEWDIR:
  1688.  
  1689. @BackgroundMode(3,@WinColor,@Black)
  1690. @DlgCtrlSize(0,9,2,10,37) @FlushKeyboard()
  1691.  
  1692. @If (@ExtractMode)
  1693.   @s1 = "extracted files to be placed"
  1694. @Else
  1695.   @s1 = "@Name files to be installed"
  1696. @EndIf
  1697.  
  1698. @GetSubdir @Subdir @Prompt = "Enter directory"
  1699.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1700.   @If(!@RunWindows) @LOCALWINDOW(10,25) @EndIf
  1701.   Please select the directory on Drive @OutDrive where
  1702.   you want @s1. @If (@StrLen(@InstallDir) < 1) Most people
  1703.   @key to accept the default directory. @EndIf
  1704.  
  1705.   @PromptSub
  1706. @EndSubdir
  1707.  
  1708. @InstallDir = @StrConvert("@Subdir","uc")
  1709.  
  1710. @If (@StrLen(@InstallDir) < 1)
  1711.   @PromptSub = ">>> You need to specify a directory on Drive @OutDrive:.<<<"
  1712.   @Goto NEWDIR
  1713. @ElseIf ("@StrMid("@InstallDir",2,1)" == ":")
  1714.   @s9 = @StrMid("@InstallDir",1,1)
  1715.   @InstallDir = @StrMid(@InstallDir,3,100)
  1716.   @If ("@s9" == "@OutDrive")
  1717.     @If (@StrLen(@InstallDir) < 1) @InstallDir = "\\" @EndIf
  1718.     @Subdir = "@InstallDir"
  1719.   @Else
  1720.     @PromptSub = ">>> No drive needed, type directory only.<<<"
  1721.     @Subdir = "@InstallDir"
  1722.     @Goto NEWDIR
  1723.   @EndIf
  1724. @EndIf
  1725.  
  1726. @If ( ("@InstallDir" == "\\") )
  1727.   @PromptSub = ">>> Do not install @Name in root directory: @OutDrive:\\ <<<"
  1728.   @Goto NEWDIR
  1729. @ElseIf (@StrFind(@InstallDir," ") >= 0)
  1730.   @PromptSub = ">>> The directory you typed contained spaces.<<<"
  1731.   @Goto NEWDIR
  1732. @ElseIf (@StrFind(@InstallDir,"\\\\") >= 0)
  1733.   @PromptSub = ">>> The directory you typed contained '\\\\'.<<<"
  1734.   @Goto NEWDIR
  1735. @ElseIf (@StrLen("@StrToken("@InstallDir",1,"@Illegal0")") > 0)
  1736.   @s9 = @StrMid("@InstallDir",@StrLen("@StrToken("@InstallDir",0,"@Illegal0")"),1)
  1737.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  1738.   @PromptSub = ">>> The character  @s9  is not allowed.<<<"
  1739.   @Goto NEWDIR
  1740. @ElseIf ("@StrToken("@InstallDir",0,"@Illegal0")" != "@InstallDir")
  1741.   @PromptSub = ">>>@BadChar<<<"
  1742.   @Goto NEWDIR
  1743. @ElseIf ((@StrLen("@StrToken("@InstallDir",0,".\\")") > 8)
  1744.        ||(@StrLen("@StrToken("@InstallDir",1,".\\")") > 8)
  1745.        ||(@StrLen("@StrToken("@InstallDir",2,".\\")") > 8))
  1746.   @PromptSub = ">>> Directory names must be 8 letters or less.<<<"
  1747.   @Goto NEWDIR
  1748. @ElseIf (@Exists("@OutDrive:@InstallDir"))
  1749.   @If (!@DirExists("@OutDrive:@InstallDir"))
  1750.     @PromptSub = ">>> @OutDrive:@InstallDir is not a valid directory.<<<"
  1751.     @Goto NEWDIR
  1752.   @EndIf
  1753. @EndIf
  1754.  
  1755. PATH_DONE:
  1756. @If ("@StrTail("@InstallDir",1)" == "\\")
  1757.   @n = (@StrLen("@InstallDir"))
  1758.   @InstallDir = @StrHead("@InstallDir",(@n-1))
  1759.   @Subdir = "@InstallDir"
  1760. @EndIf
  1761.  
  1762. @InstallPath = "@OutDrive:@InstallDir"
  1763.  
  1764. @If ("@InstallPath" == "@StartupPath")
  1765.   @PromptSub = ">>> You tried to reinstall @Name in @OutDrive:@InstallDir.<<<"
  1766.   @Goto NEWDIR
  1767. @EndIf
  1768.  
  1769. @PromptSub = ""
  1770.  
  1771. @If (@Removable(@OutDrive))
  1772.   @ToFloppy = @True
  1773. @ElseIf (@DriveRemote(@OutDrive))
  1774.   @ToNetwork = @True
  1775. @Else
  1776.   @ToHard = @True
  1777. @EndIf
  1778.  
  1779. @If (@ToHard && @InstallMode && !@AlreadyKeep)
  1780.   @If (@Exists("@InstallPath\\@RedirProg"))
  1781.     @PrevNOS = @True
  1782.     @KeepInstall = @True
  1783.     @NewInstall = @False
  1784.     @Goto ASK_KEEP
  1785.   @EndIf
  1786. @EndIf
  1787.  
  1788. @If (@ExtractMode) @Goto EXTRACT_FAMILIES @EndIf
  1789.  
  1790. @If (@ToHard || @KeepInstall)
  1791.   @your = "your"
  1792.   @my   = "my"
  1793.   @ExecutePath = @InstallPath
  1794.   @Goto XPATH_DONE
  1795. @ElseIf (@ToFloppy)
  1796.   @If ("@ExecutePath" == "") @ExecutePath = "A:@InstallDir" @EndIf
  1797.   @s5 = "floppy"
  1798.   @s6 = "INSTALL will set up a @Name for DOS workstation on Drive @OutDrive."
  1799.   @s7 = "for"
  1800.   @your = "the"
  1801.   @my   = "the"
  1802. @ElseIf (@ToNetwork)
  1803.   @If ("@ExecutePath" == "") @ExecutePath = "C:@InstallDir" @EndIf
  1804.   @s5 = "network"
  1805.   @s6 = "A network drive is a hard drive on another computer."
  1806.   @s7 = "to"
  1807.   @your = "the"
  1808.   @my   = "the"
  1809. @Else
  1810.   @Abort
  1811. @EndIf
  1812.  
  1813.  
  1814. EXEDIR:
  1815.  
  1816. @DlgCtrlSize(0,17,0,18,35) @FlushKeyboard()
  1817.  
  1818. @GetString @Ex1
  1819.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1820.  
  1821.   You are installing @Name to a @s5 drive.
  1822.   @s6
  1823.  
  1824.   Please select the drive and directory where @Name
  1825.   will run on the computer you are installing @s7.
  1826.  
  1827.       >>  You need to do this because the "path"
  1828.       >>  -- @InstallPath -- you are installing
  1829.       >>  to on your computer may not be on the
  1830.       >>  same drive as it will be running from
  1831.       >>  on the other computer.
  1832.  
  1833.  @If ("@PromptSub" == "") To use the default below, @key now. @EndIf
  1834.   @PromptSub
  1835.   @Default = "@ExecutePath" @Prompt = "Enter path on target computer"
  1836. @EndString
  1837.  
  1838. @ExecutePath = @StrConvert(@Ex1,"uc")
  1839. @If (@StrLen(@ExecutePath) < 1)
  1840.   @If ("@PromptSub" == "")
  1841.     @PromptSub = ">>> You need to enter a path for your other computer.<<<"
  1842.     @Goto EXEDIR
  1843.   @EndIf
  1844. @ElseIf (@StrFind(@ExecutePath," ") >= 0)
  1845.   @PromptSub = ">>> The directory you typed contained spaces.<<<"
  1846.   @Goto EXEDIR
  1847. @ElseIf (@StrFind(@ExecutePath,"\\\\") >= 0)
  1848.   @PromptSub = ">>> The directory you typed contained '\\\\'.<<<"
  1849.   @Goto EXEDIR
  1850. @ElseIf (@StrLen("@StrToken("@ExecutePath",1,"@Illegal1")") > 0)
  1851.   @s9 = @StrMid("@ExecutePath",@StrLen("@StrToken("@ExecutePath",0,"@Illegal1")"),1)
  1852.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  1853.   @PromptSub = ">>> The character  @s9  is not allowed.<<<"
  1854.   @Goto EXEDIR
  1855. @ElseIf ("@StrToken("@ExecutePath",0,"@Illegal1")" != "@ExecutePath")
  1856.   @PromptSub = ">>>@BadChar<<<"
  1857.   @Goto EXEDIR
  1858. @ElseIf ((@StrLen("@StrToken("@ExecutePath",0,".\\")") > 8)
  1859.        ||(@StrLen("@StrToken("@ExecutePath",1,".\\")") > 8)
  1860.        ||(@StrLen("@StrToken("@ExecutePath",2,".\\")") > 8))
  1861.   @PromptSub = ">>> Directory names must be 8 letters or less.<<<"
  1862.   @Goto EXEDIR
  1863. @ElseIf ("@StrMid("@ExecutePath",1,1)" != ":")
  1864.   @If (@ToFloppy) @x1 = "A" @Else @x1 = "C" @EndIf
  1865.   @PromptSub = ">>> Path must begin with drive (e.g. @x1:).<<<"
  1866.   @Goto EXEDIR
  1867. @ElseIf ("@StrMid("@ExecutePath",1,1)" == ":")
  1868.   @If (@ToFloppy) @x1 = "A B" @Else @x1 = "C D E F G H" @EndIf
  1869.   @x2 = @StrHead(@ExecutePath,1)
  1870.   @If (@StrFind(@x1,@x2) < 0)
  1871.     @PromptSub = ">>> Drive @x2: out of range, use @x1:<<<"
  1872.     @Goto EXEDIR
  1873.   @EndIf
  1874.   @If ( (@StrLen(@ExecutePath) == 3) && ("@StrTail(@ExecutePath,1)" == "\\"))
  1875.     @PromptSub = ">>> Please do not run @Name in @ExecutePath.<<<"
  1876.     @Goto EXEDIR
  1877.   @EndIf
  1878. @Else
  1879.   @If (@ToFloppy) @x1 = "A" @Else @x1 = "C" @EndIf
  1880.   @PromptSub = ">>> Path must begin with drive (e.g. @x1:).<<<"
  1881.   @Goto EXEDIR
  1882. @EndIf
  1883. @PromptSub = ""
  1884.  
  1885. XPATH_DONE:
  1886. @If ("@StrTail(@ExecutePath,1)" == "\\")
  1887.   @n = @StrLen(@ExecutePath)
  1888.   @ExecutePath = @StrHead(@ExecutePath,(@n-1))
  1889. @EndIf
  1890.  
  1891. @If (@NewInstall || ("@EnvLanDir" == "") || @ToNetwork)
  1892.   @SharePath  = "@StrToken(@InstallPath,0,".").NET"
  1893.   @XSharePath = "@StrToken(@ExecutePath,0,".").NET"
  1894. @Else
  1895.   @SharePath  = @EnvLanDir
  1896.   @XSharePath = @SharePath
  1897. @EndIf
  1898.  
  1899.  
  1900. @If (!(@RunWindows || @ScriptXfered))
  1901.   @If (!@ToFloppy)
  1902.    @If (@Removable(@ScriptDrive)
  1903.       && ((@DiskFree(@OutDrive)/1024) > 200))
  1904.     @s2 = "@ScriptFile"
  1905.     @b = @StrRFind("@s2","\\")
  1906.     @If (@b >= 0)
  1907.       @s2 = @StrMid(@s2,(@b+1),20)
  1908.     @EndIf
  1909.     @ScriptTempPath = "@OutDrive:\\TEMP"
  1910.     @s3 = "@ScriptTempPath\\@s2"
  1911.     @If (!@DirExists(@ScriptTempPath))
  1912.       @MkDir(@ScriptTempPath)
  1913.       @NewTemp = @True
  1914.     @EndIf
  1915.     @PleaseWait("- Copying Install script to hard drive")
  1916.     @Copy("@ScriptFile","@ScriptTempPath")
  1917.  
  1918.     @If (@Exists("@s3"))
  1919.       @ScriptXfered = @True
  1920.       @PleaseWait("- Resuming script on hard drive")
  1921.       @Chain("Hard Drive","@s3","XFER_RESTART")
  1922.     @EndIf
  1923.    @EndIf
  1924.   @EndIf
  1925. @EndIf
  1926.  
  1927. XFER_RESTART:
  1928.  
  1929.  
  1930. SHARE:
  1931.  
  1932. @If (@KeepInstall)
  1933.   @Share= @Exists("@EnvLanCfg\\SERVER.EXE")
  1934.   @Goto NOSHARE
  1935. @EndIf
  1936.  
  1937. @If (@ToFloppy)
  1938.   @Share = @False
  1939.   @Goto NOSHARE
  1940. @EndIf
  1941.  
  1942. @If (@InfFileMode)
  1943.   @Share = ("@InfShare" != "NO")
  1944.   @Goto NOSHARE
  1945. @EndIf
  1946.  
  1947. @ClearOption(11)
  1948. @ClearOption(12)
  1949. @If (@Share) @SetOption(11) @Else @SetOption(12) @EndIf
  1950.  
  1951. @BackgroundMode(3,@WinColor,@Black)
  1952. @DlgCtrlSize(0,11,1,14,51) @FlushKeyboard()
  1953.  
  1954. @GetOption @Prompt = "Share drives and printers?"
  1955.   @If (!@RunWindows)
  1956.     @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  1957.     @LOCALWINDOW(15,40)
  1958.   @EndIf
  1959.   In order for other computers in your @Name network
  1960.   to use the drives and printers on @your computer
  1961.   "@ComputerName", you need to enable "sharing" now.
  1962.   (This will make @your computer into what is called
  1963.   a "server", since it will service requests from other
  1964.   computers while you continue to use it.)
  1965.  
  1966.   Do you want to share @your disk drives or printers?
  1967.  
  1968.   @Option 11 = "SHARE @my computer's drives or printers"
  1969.   @Option 12 = "DO NOT share @my computer's drives and printers"
  1970. @EndOption
  1971.  
  1972. @Share = @False
  1973. @If (11  [= @Option)  @Share = @True  @EndIf
  1974.  
  1975. NOSHARE:
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981. MAX:
  1982. @If (@KeepInstall)
  1983.   @Logouts = 15
  1984.   @Goto OPTIONS
  1985. @EndIf
  1986.  
  1987. @If (@InfFileMode && ("@InfLogouts" != ""))
  1988.   @Logouts = @StrToInt(@InfLogouts)
  1989. @EndIf
  1990. @If (@InfFileMode && ("@InfLogins" != ""))
  1991.   @Logins = @StrToInt(@InfLogins)
  1992.   @Goto OPTIONS
  1993. @EndIf
  1994.  
  1995. @If (!@Share) @Goto OPTIONS @EndIf
  1996.  
  1997. @If (@RunWindows)
  1998.   @s5 = "click on"
  1999. @Else
  2000.   @s5 = "arrow down to"
  2001. @EndIf
  2002.  
  2003. @s9 = "maximum connected computers"
  2004. @keep     = "KEEP      @s9 at"
  2005. @increase = "INCREASE  @s9 to"
  2006. @setmax   = "SET  @s9 to"
  2007.  
  2008. @ClearOption(11)
  2009. @ClearOption(12)
  2010. @ClearOption(13)
  2011. @ClearOption(14)
  2012.  
  2013. @If (@Logins > 60) @SetOption(14)
  2014. @ElseIf (@Logins > 30) @SetOption(13)
  2015. @ElseIf (@Logins > 10) @SetOption(12)
  2016. @Else @SetOption(11) @EndIf
  2017.  
  2018. @BackgroundMode(3,@WinColor,@Black)
  2019.  
  2020. @If (@Logins <= 10)
  2021.  @DlgCtrlSize(0,13,1,18,51) @FlushKeyboard()
  2022.  @GetOption @Prompt = "More than 10 computers using @your drives and printers?"
  2023.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2024.   @If (!@RunWindows) @LOCALWINDOW(16,35) @EndIf
  2025.   If @your computer  "@ComputerName"  will NOT share drives and
  2026.   printers with more than 10 other computers, @key
  2027.   now to  "KEEP"  the maximum number of computers at 10.
  2028.  
  2029.   But if this computer  "@ComputerName"  WILL share with more
  2030.   than 10 other computers, @s5  the desired "INCREASE"
  2031.   in the box below, then @key to allow those other
  2032.   computers to use your drives and printers at the same
  2033.   time.  (This will result in an increase in the amount of
  2034.   memory @Name uses on @your computer.)
  2035.  
  2036.   @Option 11 = "@keep 10"
  2037.   @Option 12 = "@increase 30"
  2038.   @Option 13 = "@increase 60"
  2039.   @Option 14 = "@increase 100"
  2040.  @EndOption
  2041. @Else
  2042.  @DlgCtrlSize(0,8,1,13,48) @FlushKeyboard()
  2043.  @GetOption @Prompt = "Set number of computers using yours at one time"
  2044.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2045.   @If (!@RunWindows) @LOCALWINDOW(12,35) @EndIf
  2046.   Select the approximate number of computers on your
  2047.   @Name network that you want @your computer  "@ComputerName"
  2048.   to share its drives and printers with.  (The larger the
  2049.   number you select, the more memory @Name will
  2050.   use on @your computer.)
  2051.  
  2052.   @Option 11 = "@setmax 10"
  2053.   @Option 12 = "@setmax 30"
  2054.   @Option 13 = "@setmax 60"
  2055.   @Option 14 = "@setmax 100"
  2056.  @EndOption
  2057. @EndIf
  2058.  
  2059. @If     (11  [= @Option)
  2060.     @Logins = 10
  2061. @ElseIf (12  [= @Option)
  2062.     @Logins = 30
  2063. @ElseIf (13  [= @Option)
  2064.     @Logins = 60
  2065. @ElseIf (14  [= @Option)
  2066.     @Logins = 100
  2067. @EndIf
  2068.  
  2069.  
  2070. OPTIONS:
  2071.  
  2072. @If (@ToFloppy || @LowDensity) @MailSupport = @False @EndIf
  2073.  
  2074. @If (@InfFileMode)
  2075.   @If (@MailSupport)
  2076.     @If (("@InfMail" == "NO") || ("@InfMail" == ""))
  2077.     @Else
  2078.       @SetOption(160)
  2079.     @EndIf
  2080.   @EndIf
  2081.   @If ("@InfNcp" == "YES") @SetOption(180) @EndIf
  2082.   @If ("@InfSmb" == "YES") @SetOption(190) @EndIf
  2083.   @If (@HighDensity && !@ToFloppy)
  2084.     @If ("@InfInstallServices" == "YES") @SetOption(112) @EndIf
  2085.   @EndIf
  2086.   @Goto OPTIONS_DONE
  2087. @EndIf
  2088.  
  2089. @If (@MailEnabled)     @SetOption(160) @EndIf
  2090. @If (@NcpEnabled & 1)  @SetOption(180) @EndIf
  2091. @If (@NcpEnabled & 2)  @SetOption(181) @EndIf
  2092. @If (@SmbEnabled & 1)  @SetOption(190) @EndIf
  2093. @If (@SmbEnabled & 2)  @SetOption(191) @EndIf
  2094. @If (@HighDensity && !@ToFloppy)
  2095.   @If (@InstallServices) @SetOption(112) @EndIf
  2096. @EndIf
  2097.  
  2098. @MailEnabled = @False
  2099. @NcpEnabled  = 0
  2100. @SmbEnabled  = 0
  2101. @InstallServices = @False
  2102.  
  2103. @BackgroundMode(3,@WinColor,@Black)
  2104. @t = 8 @b = 13
  2105. @If (@MailSupport) @b = (@b + 1) @EndIf
  2106. @If (@HighDensity && !@ToFloppy) @b = (@b + 1) @EndIf
  2107. @DlgCtrlSize(0,@t,1,@b,51) @FlushKeyboard()
  2108.  
  2109. @GetOption @Checkbox @Prompt = "Select all that apply"
  2110.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2111.   @If (!@RunWindows) @LOCALWINDOW(16,35) @EndIf
  2112.   Select one or more (or none) of the following additional
  2113.   @Name features listed below if you need them. @If (@NewInstall) (Each of
  2114.   these features takes up additional memory or disk space
  2115.   on @your computer if they are installed.) @Else (Any features
  2116.   you select will be added to your current installation.) @EndIf
  2117.  
  2118.   @If (!@RunWindows)
  2119.         >> Use the SPACE bar to toggle the selections below   <<
  2120.         >> Press ENTER to accept the selections you have made << @EndIf
  2121. @If (@MailSupport)
  2122.  @If (@InstallWindows)
  2123.   @Option 160 = "Artisoft Exchange - Mail and Scheduler"
  2124.  @Else
  2125.   @Option 160 = "Artisoft Exchange - Mail Post Office"
  2126.  @EndIf
  2127. @EndIf
  2128.   @Option 180 = "Client to Novell @Registered 3.11 File Server"
  2129.   @Option 181 = "Client to Novell @Registered 4.01 File Server"
  2130.   @Option 190 = "Client to Windows@Trademark for Workgroups"
  2131.   @Option 191 = "Client to Microsoft @Registered LAN Manager"
  2132. @If (@HighDensity && !@ToFloppy)
  2133.   @Option 112 = "Load files to enable \"Install Services\""
  2134. @EndIf
  2135. @EndOption
  2136.  
  2137.  
  2138. OPTIONS_DONE:
  2139. @If (160 [! @Option)
  2140.   @MailEnabled = @False
  2141.   @NetMail     = @False
  2142.   @MailServer  = @False
  2143.   @NewMailServer = @False
  2144.   @ClearMailData = @False
  2145.   @FaxEnabled  = @False
  2146.   @Goto NOMAIL
  2147. @EndIf
  2148.  
  2149.  
  2150.  
  2151. @If (@InfFileMode)
  2152.   @ClearOption(160)
  2153.   @MailEnabled = @False
  2154.   @NetMail     = @False
  2155.   @MailServer  = @False
  2156.   @NewMailServer = @False
  2157.   @ClearMailData = @False
  2158.   @FaxEnabled  = @False
  2159.   @If     (("@InfMail" == "PO")
  2160.        || ("@InfMail" == "SERVER"))
  2161.        @SetOption(170)
  2162.        @Goto CHECK_PO
  2163.   @ElseIf (("@InfMail" == "YES")
  2164.        || ("@InfMail" == "CLIENT"))
  2165.        @SetOption(160)
  2166.   @ElseIf ("@InfMail" == "NET")
  2167.        @SetOption(161)
  2168.   @EndIf
  2169.   @Goto MAIL_DONE
  2170. @EndIf
  2171.  
  2172. @ClearOption(160)
  2173. @If     (@NetMail)    @SetOption(161)
  2174. @ElseIf (@MailServer) @SetOption(170)
  2175. @Else @SetOption(160) @EndIf
  2176. @MailEnabled = @False
  2177. @NetMail     = @False
  2178. @MailServer  = @False
  2179. @NewMailServer = @False
  2180. @ClearMailData = @False
  2181. @FaxEnabled  = @False
  2182.  
  2183. @If (!@InstallWindows)
  2184.   @SetOption(170)
  2185.   @ClearOption(160)
  2186.   @Goto CHECK_PO
  2187. @EndIf
  2188.  
  2189. @BackgroundMode(3,@WinColor,@Black)
  2190. @DlgCtrlSize(0,16,7,20,58) @FlushKeyboard()
  2191.  
  2192. @GetOption @Prompt = "Select Artisoft Exchange Mail option"
  2193.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2194.   @If (!@RunWindows) @LOCALWINDOW(18,40) @EndIf
  2195.   You need to set up ONE computer on your @Name network
  2196.   as an Artisoft Exchange Mail Post Office.  This should
  2197.   be a speedy machine with a large hard drive.
  2198.  
  2199.   All of the other computers on the network should be set up as
  2200.   either a  "Mail Client"  or a  "Network Mail Client".  If you
  2201.   choose "Mail Client", the Artisoft Exchange programs will be
  2202.   copied to @your computer and will take up disk space there.
  2203.   If you choose "Network Mail Client", the programs will be run
  2204.   from the post office computer.  They will run more slowly, but
  2205.   will not take up any space on @your computer's hard drive.
  2206.  
  2207.   Select one of the Artisoft Exchange Mail options listed below:
  2208.  
  2209.   @Option 160 = "Artisoft Exchange - Mail Client"
  2210.   @Option 161 = "Artisoft Exchange - Network Mail Client"
  2211.   @Option 170 = "Artisoft Exchange - Mail Post Office"
  2212. @EndOption
  2213.  
  2214. @If (170 [! @Option)
  2215.   @Goto MAIL_DONE
  2216. @EndIf
  2217.  
  2218. CHECK_PO:
  2219. @s1 = @StrConvert("@InstallPath\\AMAIL","OEM")
  2220. @If (!@Exists("@s1\\GACC.DB"))
  2221.   @NewMailServer = @True
  2222.   @Goto MAIL_DONE
  2223. @EndIf
  2224.  
  2225. @SetOption(11)
  2226.  
  2227. @BackgroundMode(3,@WinColor,@Black)
  2228. @DlgCtrlSize(0,11,5,14,46) @FlushKeyboard()
  2229.  
  2230. @GetOption @Prompt = "Clear out @your existing mail data?"
  2231.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText) @If(!@RunWindows) @LOCALWINDOW(15,40) @EndIf
  2232.  
  2233.   @Name INSTALL found an existing Artisoft Exchange Mail
  2234.   Post Office.  You can  "KEEP"  the existing messages and
  2235.   account information, or start over with an unused data
  2236.   base by choosing  "CLEAR"  below.
  2237.  
  2238.   If you choose  "CLEAR", all @your existing messages and
  2239.   accounts will be removed.
  2240.  
  2241.   @Option 11  = "KEEP    mail messages and other data"
  2242.   @Option 12  = "CLEAR   @your existing mail data"
  2243. @EndOption
  2244.  
  2245. @If (12 [= @Option)
  2246.   @NewMailServer = @True
  2247.   @ClearMailData = @True
  2248. @EndIf
  2249.  
  2250.  
  2251. MAIL_DONE:
  2252. @MailEnabled = @True
  2253.  
  2254. @If (170 [= @Option)
  2255.   @Share = @True
  2256.   @MailServer = @True
  2257.   @If (@InstallWindows)
  2258.     @SetOption(162)
  2259.   @EndIf
  2260.   @SetOption(160)
  2261.   @SetOption(161)
  2262.   @SetOption(122)
  2263.   @If (@NewMailServer) @SetOption(171) @EndIf
  2264. @ElseIf (160 [= @Option)
  2265.   @SetOption(161)
  2266.   @SetOption(162)
  2267. @ElseIf (161 [= @Option)
  2268.   @SetOption(162)
  2269.   @NetMail = @True
  2270. @ElseIf (162 [= @Option)
  2271.   @SetOption(160)
  2272.   @SetOption(161)
  2273. @Else
  2274.   @MailEnabled = @False
  2275.   @Goto NOMAIL
  2276. @EndIf
  2277.  
  2278. @FaxEnabled  = @True
  2279.  
  2280. @If (@InfFileMode && ("@InfPOname" != ""))
  2281.   @POname = @InfPOname
  2282.   @Goto PONAME_DONE
  2283. @EndIf
  2284.  
  2285. GET_PO:
  2286. @If (@MailServer)
  2287.  
  2288.  @If (@NewMailServer)
  2289.   @If (@RunWindows) @s1 = "" @Else @s1 = "\n    " @EndIf
  2290.   @DlgCtrlSize(0,9,2,10,40) @FlushKeyboard()
  2291.  
  2292.   @GetString @Po1
  2293.     @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2294.     @s1@!You have selected @your computer  "@ComputerName"
  2295.     to be an Artisoft Exchange Mail post office.  You need to
  2296.     give @your new post office a name.  (The post office name
  2297.     does not have to be the same as the computer name.)
  2298.  
  2299.     @PromptName
  2300.     @Default = "@POname" @Prompt = "Enter post office name"
  2301.   @EndString
  2302.  
  2303.   @POname = @StrConvert("@Po1","uc")
  2304.   @If (@StrLen(@POname) < 1)
  2305.     @PromptName = ">>> Name of post office cannot be blank.<<<"
  2306.     @Goto GET_PO
  2307.   @ElseIf (@StrLen(@POname) > 30)
  2308.     @PromptName = ">>> The name you typed was longer than 30 letters.<<<"
  2309.     @Goto GET_PO
  2310.   @EndIf
  2311.  @Else
  2312.   @POname = ""
  2313.   @Goto PONAME_DONE
  2314.  @EndIf
  2315.  
  2316. @ElseIf (@MailEnabled)
  2317.  
  2318.   @DlgCtrlSize(0,10,2,11,30) @FlushKeyboard()
  2319.  
  2320.   @GetString @POname
  2321.     @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2322.     In order for your Artisoft Exchange Mail system to work,
  2323.     you must select one of the computers in your
  2324.     @Name network to be set up as the post office.
  2325.     Do not enter the name of @your computer  "@ComputerName".
  2326.     (You don't need the name of the post office here,
  2327.     only the name of the computer that has it.)
  2328.  
  2329.     @PromptName
  2330.     @Prompt = "Enter name of computer that has post office"
  2331.   @EndString
  2332.  
  2333.   @POname = @StrConvert(@POname,"uc")
  2334.   @If (@StrLen(@POname) < 1)
  2335.     @PromptName = ">>> Name of post office computer cannot be blank.<<<"
  2336.     @Goto GET_PO
  2337.   @ElseIf (@StrLen(@POname) > 15)
  2338.     @PromptName = ">>> The name you typed was longer than 15 letters.<<<"
  2339.     @Goto GET_PO
  2340.   @ElseIf ("@POname" == "@ComputerName")
  2341.     @PromptName = ">>> Do not use \"@ComputerName\", please.<<<"
  2342.     @Goto GET_PO
  2343.   @EndIf
  2344. @EndIf
  2345.  
  2346. @If (@StrFind("@Illegal","@POname") >= 0)
  2347.   @PromptName = ">>> The character  @POname  is not allowed.<<<"
  2348.   @Goto GET_PO
  2349. @ElseIf (@StrLen("@StrToken("@POname",1,"@Illegal")") > 0)
  2350.   @s9 = @StrMid("@POname",@StrLen("@StrToken("@POname",0,"@Illegal")"),1)
  2351.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  2352.   @PromptName = ">>> The character  @s9  is not allowed.<<<"
  2353.   @Goto GET_PO
  2354. @ElseIf ("@StrToken("@POname",0,"@Illegal")" != "@POname")
  2355.   @PromptName = ">>>@BadChar<<<"
  2356.   @Goto GET_PO
  2357. @ElseIf (@StrFind(@POname," ") >= 0)
  2358.   @PromptName = ">>> The name you typed contained spaces.<<<"
  2359.   @Goto GET_PO
  2360. @EndIf
  2361.  
  2362. PONAME_DONE:
  2363. @PromptName = ""
  2364. @MailPath        = "@ExecutePath\\AMAILPRG"
  2365. @MailDataPath    = "\\\\@POname\\AMAIL"
  2366. @MailInstallPath = "@InstallPath\\AMAILPRG"
  2367. @MailInstallDataPath = "@InstallPath\\AMAIL"
  2368. @MailDirectDataPath  = "@ExecutePath\\AMAIL"
  2369.  
  2370. @If (@MailServer)
  2371.   @MailDataPath = "\\\\@ComputerName\\AMAIL"
  2372. @ElseIf (@NetMail)
  2373.   @MailPath     = "\\\\@POname\\AMAILPRG"
  2374. @EndIf
  2375.  
  2376. @If (@NewMailServer)
  2377.  
  2378.   @If ((@InfFileMode) && ("@InfSyncMail" != ""))
  2379.     @SyncMail = ("@InfSyncMail" == "NO")
  2380.     @Goto SYNC_DONE
  2381.   @EndIf
  2382.  
  2383.   @ClearOption(11)
  2384.   @ClearOption(12)
  2385.   @If (@SyncMail) @SetOption(11) @Else @SetOption(12) @EndIf
  2386.  
  2387.   @BackgroundMode(3,@WinColor,@Black)
  2388.   @DlgCtrlSize(0,11,2,14,45) @FlushKeyboard()
  2389.  
  2390.   @GetOption @Prompt = "Same Accounts for @Name @AndSign Mail?"
  2391.     @If (!@RunWindows)
  2392.       @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2393.       @LOCALWINDOW(16,40)
  2394.     @EndIf
  2395.     Do you want your @Name and Artisoft Exchange Mail
  2396.     to use the same accounts?
  2397.  
  2398.     If you choose YES, Exchange Mail will use @Name
  2399.     account names for your mail user names.
  2400.  
  2401.     If you choose NO, you will need to create separate
  2402.     accounts for Exchange Mail and @Name.
  2403.  
  2404.     @Option 11 = "YES  --  Use same accounts"
  2405.     @Option 12 = "NO   --  Use separate accounts"
  2406.   @EndOption
  2407.  
  2408.   @SyncMail = @False
  2409.   @If (11  [= @Option)  @SyncMail = @True  @EndIf
  2410. @EndIf
  2411. SYNC_DONE:
  2412. @If (@SyncMail) @SyncFlag = "Y" @Else @SyncFlag = "N" @EndIf
  2413.  
  2414.  
  2415. NOMAIL:
  2416.  
  2417. @SetOption(113)
  2418.  
  2419. @If (@ToFloppy)
  2420.   @InstallWindows = @False
  2421.   @ClearOption(112)
  2422. @Else
  2423.   @SetOption(110)
  2424.   @If (@Share)
  2425.     @SetOption(111)
  2426.   @EndIf
  2427.   @If (@InstallWindows)
  2428.     @SetOption(120)
  2429.     @SetOption(122)
  2430.     @If (@Share)
  2431.       @SetOption(121)
  2432.     @EndIf
  2433.   @EndIf
  2434. @EndIF
  2435.  
  2436. @If (180 [= @Option)
  2437.   @NcpEnabled = 1
  2438. @EndIf
  2439. @If (181 [= @Option)
  2440.   @NcpEnabled = (@NcpEnabled | 2)
  2441.   @SetOption(180)
  2442. @EndIf
  2443. @If (190 [= @Option) @SmbEnabled = 1 @EndIf
  2444. @If (191 [= @Option) @SmbEnabled = (@SmbEnabled | 2) @EndIf
  2445. @If (112 [= @Option)
  2446.   @Share = @True
  2447.   @InstallServices = @True
  2448. @EndIf
  2449.  
  2450.  
  2451. CONTINUE_1:
  2452. @s6 = "" @s7 = "" @s8 = "" @s9 = ""
  2453. @If (@InstallServices) @s7 = "Install Services" @EndIf
  2454. @If (@MailServer)
  2455.   @If ("@POname" != "") @s9 = " \"@POname\"" @Else @s9 = "" @EndIf
  2456.   @s9 = "Post Office @s9"
  2457.   @If (@SyncMail) @s9 = "@Name @s9" @EndIf
  2458.   @If (@NewMailServer) @s9 = "New @s9" @EndIf
  2459. @ElseIf (@MailEnabled)
  2460.   @If (@NetMail) @s9 = "Net " @Else @s9 = "" @EndIf
  2461.   @s9 = "@s9@!Mail (P.O. at @POname)"
  2462. @EndIf
  2463.  
  2464. @If (@SmbEnabled) @s6 = "Microsoft Client" @EndIf
  2465. @If (@NcpEnabled) @s8 = "Novell Client" @EndIf
  2466. @If ("@s6" != "") @s8 = "@s6   @s8" @EndIf
  2467.  
  2468. @Options1 = ""  @Options2 = ""
  2469. @If ("@s7@s8@s9" == "")
  2470.   @Options1 = "None"
  2471. @ElseIf (@StrLen("@s7@s8@s9") < 45)
  2472.   @If ("@s7" != "") @Options1 = "@s7   "  @EndIf
  2473.   @If ("@s8" != "") @Options1 = "@Options1@s8   "  @EndIf
  2474.   @Options1 = "@Options1@s9"
  2475. @ElseIf (@StrLen("@s7@s9") < 45)
  2476.   @If ("@s7" != "") @Options1 = "@s7   @s9" @Else @Options1 = @s9  @EndIf
  2477.   @Options2 = "@s8\n"
  2478. @ElseIf (@StrLen("@s8@s9") < 45)
  2479.   @Options1 = "@s7"
  2480.   @If ("@s8" != "") @Options2 = "@s8   " @EndIf
  2481.   @Options2 = "@Options2@s9\n"
  2482. @Else
  2483.   @Options1 = "@s9"
  2484.   @Options2 = "@s7   @s8"
  2485. @EndIf
  2486.  
  2487. @Options0 = ""
  2488. @If     (@ToNetwork)   @Options0 = "Network"
  2489. @ElseIf (@ToFloppy)    @Options0 = "Floppy" @EndIf
  2490. @If ("@Options0" != "") @Options0 = "(@Options0)" @EndIf
  2491.  
  2492.  
  2493. @If (@InfFileMode || @KeepInstall || (@ToFloppyOK)) @Goto CONTINUE_1_DONE @EndIf
  2494.  
  2495. @ClearOption(11)
  2496. @ClearOption(12)
  2497. @ClearOption(13)
  2498.  
  2499. @If (@InstallWindows) @s5 = "Windows" @Else @s5 = "DOS" @EndIf
  2500. @BackgroundMode(3,@WinColor,@Black)
  2501. @DlgCtrlSize(0,12,2,15,42) @FlushKeyboard()
  2502.  
  2503. @GetOption @Prompt = "@Name Information Check"
  2504.    @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2505.    @If (!@RunWindows) @LOCALWINDOW(17,40) @EndIf
  2506.    So far, you have specified the following installation
  2507.    information for @Name for @s5:
  2508.  
  2509.    Installation Drive:        @Sdrive @OutDrive:     @Options0
  2510.    Installation Directory:    @Sxxdir @InstallDir
  2511.    Computer Name:             @Sxname @ComputerName
  2512.    Share Drives @AndSign Printers:  @Sshare @If (!@Share) NO @Else YES - Allow @Logins Connections @EndIf
  2513.    Extra Options:             @Sopt1 @Options1
  2514.                               @Sopt2 @Options2
  2515.    @Option 11 = "OK to continue with installation"
  2516.    @Option 12 = "Go back and re-enter the information"
  2517. @If (@MenuMode)
  2518.    @Option 13 = "RETURN to Installation Menu"
  2519. @EndIf
  2520. @EndOption
  2521.  
  2522. @If     (12  [= @Option)
  2523.    @Goto INSTALL
  2524. @ElseIf (13  [= @Option)
  2525.    @Goto MAINMENU
  2526. @EndIf
  2527.  
  2528. CONTINUE_1_DONE:
  2529.  
  2530. @Goto ADAPTERS_MENU
  2531.  
  2532.  
  2533. EXTRACT_FAMILIES:
  2534. @If (!@ExtractMode) @Goto ADAPTERS_MENU @EndIf
  2535.  
  2536. @BackgroundMode(3,@WinColor,@Black)
  2537. @If (@HighDensity) @b = 17 @Else @b = 10 @EndIf
  2538. @DlgCtrlSize(0,5,1,@b,55) @FlushKeyboard()
  2539.  
  2540. @GetOption @Checkbox @Prompt = "Select file groups to extract"
  2541.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText) @If (!@RunWindows) @LOCALWINDOW(20,40) @EndIf
  2542.  
  2543.   Select one or more of the following @Name file groups
  2544.   to load onto your computer.
  2545.   @If (!@RunWindows)
  2546.               >> Type "Y" for all, or "N" for none       <<
  2547.               >> Use the SPACE bar to toggle a selection <<
  2548.               >> Press ENTER to accept the selections    <<
  2549.   @EndIf
  2550.   @Option  11  = "List of Adapter Drivers"
  2551.   @Option  113 = "@Name Core Workstation Files"
  2552.   @Option  110 = "@Name Additional Workstation Files"
  2553.   @Option  111 = "@Name Server Files"
  2554.   @If (@HighDensity)
  2555.   @Option  120 = "@Name Workstation Windows Files"
  2556.   @Option  180 = "@Name Workstation Novell@Registered Client Files"
  2557.   @Option  121 = "@Name Server Windows Files"
  2558.   @Option  112 = "@Name Installation Services Files"
  2559.   @Option  160 = "Artisoft Exchange Mail Client Files"
  2560.   @Option  162 = "Artisoft Exchange Mail Fax Files"
  2561.   @Option  170 = "Artisoft Exchange Mail Server Files"
  2562.   @EndIf
  2563. @EndOption
  2564.  
  2565. @If ((120 [= @Option) || (170 [= @Option))
  2566.   @SetOption(122)
  2567. @EndIf
  2568. @If (180 [= @Option)
  2569.   @SetOption(140)
  2570. @EndIf
  2571.  
  2572. @If (112 [= @Option)
  2573.   @InstallServices = @True
  2574. @EndIf
  2575.  
  2576. @If ((160 [= @Option) || (170 [= @Option))
  2577.   @MailInstallPath = "@InstallPath\\AMAILPRG"
  2578.   @MailEnabled = @True
  2579. @EndIf
  2580.  
  2581. @If ( 11  [! @Option) @Goto FINISH_INSTALL @EndIf
  2582.  
  2583.  
  2584. ADAPTERS_MENU:
  2585.  
  2586. @Our2mb   = @False
  2587. @OurMport = @False
  2588.  
  2589. @If (@NcpEnabled)
  2590.   @AdapterName = "ODI Driver for NodeRunner"
  2591.   @SetOption(131)
  2592.   @SetOption(140)
  2593.   @SetOption(142)
  2594.   @If (@SmbEnabled)
  2595.     @Aopt = 141
  2596.     @AdapterProg = @AdapterProgAEX
  2597.     @AexNdisSelected = @True
  2598.   @Else
  2599.     @Aopt = 131
  2600.     @AdapterProg = @AdapterProg1
  2601.   @EndIf
  2602.   @Goto ADAPTERS_DONE
  2603. @EndIf
  2604.  
  2605. @If (@Aopt) @SetOption(@Aopt) @EndIf
  2606.  
  2607. @BackgroundMode(3,@WinColor,@Black)
  2608. @If (@SmbEnabled)
  2609.   @DlgCtrlSize(0,8,0,13,55)
  2610. @Else
  2611.   @If (@ExtractMode) @t = 6 @Else @t = 9 @EndIf
  2612.   @DlgCtrlSize(0,@t,0,20,55)
  2613. @EndIf
  2614. @FlushKeyboard()
  2615.  
  2616. @GetOption @If (@ExtractMode) @Checkbox @EndIf @Prompt = "Select network adapter"
  2617.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText) @If (!@RunWindows) @LOCALWINDOW(20,40) @EndIf
  2618.  @If (@ExtractMode) Please select one or more of the following adapters to load into
  2619.   the @Name directory -- @InstallPath -- on @your hard disk.
  2620.   @If (!@RunWindows)
  2621.     >> Type "Y" for all adapters, or "N" for none         <<
  2622.     >> Use the SPACE bar to toggle an adapter selection   <<
  2623.     >> Press ENTER to accept the selections you have made <<
  2624.  @EndIf @Else Please select one of the following adapters to run with
  2625.   your @Name software. @If (!@SmbEnabled) If you do not know the name
  2626.   of the adapter that is installed in @your computer,
  2627.   check the instructions that came with @your adapter.
  2628.   If the name of @your adapter does not appear on the list
  2629.   below, select "@AdapterNameNdis" or
  2630.   "@AdapterNameOther". @Else (Since you chose to install
  2631.   @Name as a Microsoft client, you need to use an NDIS
  2632.   driver.  Select @AdapterNameAEX if
  2633.   you have an Artisoft adapter.) @EndIf @EndIf
  2634.  @If (@SmbEnabled) @Option 141 = "@AdapterNameAEX"
  2635.   @Option 140 = "@AdapterNameNdis"
  2636.  @Else @Option 131 = "@AdapterName1b"
  2637.   @Option  31 = "@AdapterName1a"
  2638.   @Option 141 = "@AdapterNameAEX"
  2639.   @Option 140 = "@AdapterNameNdis"
  2640.   @If (!@ExtractMode) @Option 138 = "@AdapterNameOther" @EndIf
  2641.   @Option 132 = "@AdapterName2"
  2642.   @Option 133 = "@AdapterName3"
  2643.   @Option 134 = "@AdapterName4"
  2644.   @Option 135 = "@AdapterName5"
  2645.   @Option 136 = "@AdapterName6"
  2646.   @Option 137 = "@AdapterNameMB1"
  2647.   @Option  37 = "@AdapterNameMB2"
  2648.   @Option  47 = "@AdapterNameMB3"
  2649.   @Option  57 = "@AdapterNameMB4"
  2650.   @Option 148 = "@AdapterName7"
  2651.   @Option 149 = "@AdapterName8"
  2652.   @Option 150 = "@AdapterName9"
  2653.   @Option 151 = "@AdapterName10"
  2654.   @Option 152 = "@AdapterName11a"
  2655.   @Option  52 = "@AdapterName11b"
  2656.   @Option  62 = "@AdapterName11c"
  2657.   @Option 153 = "@AdapterName12"
  2658.   @Option 154 = "@AdapterName13"
  2659.   @Option 155 = "@AdapterName14"
  2660.   @Option 156 = "@AdapterName15"
  2661.   @Option 157 = "@AdapterName16"
  2662.   @Option 158 = "@AdapterName17"
  2663.  
  2664.  @EndIf
  2665. @EndOption
  2666.  
  2667. @NdisSelected = @False
  2668. @AexNdisSelected = @False
  2669.  
  2670. @If        (131  [= @Option)
  2671.    @Aopt = 131 @AdapterName = @AdapterName1b @AdapterProg = @AdapterProg1
  2672. @EndIf @If ( 31  [= @Option)
  2673.    @AdapterName = @AdapterName1a @AdapterProg = @AdapterProg1
  2674.    @Aopt = 31 @ClearOption(31) @SetOption(131)
  2675. @EndIf @If (132  [= @Option)
  2676.    @Aopt = 132 @AdapterName = @AdapterName2  @AdapterProg = @AdapterProg2
  2677. @EndIf @If (133  [= @Option)
  2678.    @Aopt = 133 @AdapterName = @AdapterName3  @AdapterProg = @AdapterProg3
  2679. @EndIf @If (134  [= @Option)
  2680.    @Aopt = 134 @AdapterName = @AdapterName4  @AdapterProg = @AdapterProg4
  2681. @EndIf @If (135  [= @Option)
  2682.    @Aopt = 135 @AdapterName = @AdapterName5  @AdapterProg = @AdapterProg5
  2683. @EndIf @If (136  [= @Option)
  2684.    @Aopt = 136 @AdapterName = @AdapterName6  @AdapterProg = @AdapterProg6
  2685.    @OurMport = @True
  2686. @EndIf @If (137  [= @Option)
  2687.    @Aopt = 137 @AdapterName = @AdapterNameMB1  @AdapterProg = @AdapterProgMB1
  2688.    @Our2mb = @True
  2689. @EndIf @If ( 37  [= @Option)
  2690.    @AdapterName = @AdapterNameMB2 @AdapterProg = @AdapterProgMB2
  2691.    @Aopt = 37 @ClearOption(37) @SetOption(137)
  2692.    @Our2mb = @True
  2693. @EndIf @If ( 47  [= @Option)
  2694.    @AdapterName = @AdapterNameMB3 @AdapterProg = @AdapterProgMB3
  2695.    @Aopt = 47 @ClearOption(47) @SetOption(137)
  2696.    @Our2mb = @True
  2697. @EndIf @If ( 57  [= @Option)
  2698.    @Aopt = 57 @AdapterName = @AdapterNameMB4 @AdapterProg = @AdapterProgMB4
  2699.    @ClearOption(57) @SetOption(137)
  2700.    @Our2mb = @True
  2701. @EndIf @If (138  [= @Option)
  2702.    @Aopt = 138 @AdapterName = @AdapterNameOther  @AdapterProg = @AdapterProgOther
  2703. @EndIf @If (140  [= @Option)
  2704.    @Aopt = 140
  2705.    @AdapterName = @AdapterNameNdis
  2706.    @NdisSelected = @True
  2707. @EndIf @If (141  [= @Option)
  2708.    @Aopt = 141
  2709.    @AdapterName = @AdapterNameAEX
  2710.    @AdapterProg = @AdapterProgAEX
  2711.    @AexNdisSelected = @True
  2712.    @SetOption(140)  @SetOption(142)
  2713.    @SetOption(141)
  2714. @EndIf @If (148  [= @Option)
  2715.    @Aopt = 148 @AdapterName = @AdapterName7  @AdapterProg = @AdapterProg7
  2716. @EndIf @If (149  [= @Option)
  2717.    @Aopt = 149 @AdapterName = @AdapterName8  @AdapterProg = @AdapterProg8
  2718. @EndIf @If (150  [= @Option)
  2719.    @Aopt = 150 @AdapterName = @AdapterName9  @AdapterProg = @AdapterProg9
  2720. @EndIf @If (151  [= @Option)
  2721.    @Aopt = 151 @AdapterName = @AdapterName10 @AdapterProg = @AdapterProg10
  2722. @EndIf @If (152  [= @Option)
  2723.    @Aopt = 152 @AdapterName = @AdapterName11a @AdapterProg = @AdapterProg11a
  2724. @EndIf @If ( 52  [= @Option)
  2725.    @AdapterName = @AdapterName11b @AdapterProg = @AdapterProg11b
  2726.    @Aopt = 52 @ClearOption(32) @SetOption(152)
  2727. @EndIf @If ( 62  [= @Option)
  2728.    @AdapterName = @AdapterName11c @AdapterProg = @AdapterProg11c
  2729.    @Aopt = 62 @ClearOption(62) @SetOption(152)
  2730. @EndIf @If (153  [= @Option)
  2731.    @Aopt = 153 @AdapterName = @AdapterName12 @AdapterProg = @AdapterProg12
  2732. @EndIf @If (154  [= @Option)
  2733.    @Aopt = 154 @AdapterName = @AdapterName13 @AdapterProg = @AdapterProg13
  2734. @EndIf @If (155  [= @Option)
  2735.    @Aopt = 155 @AdapterName = @AdapterName14 @AdapterProg = @AdapterProg14
  2736. @EndIf @If (156  [= @Option)
  2737.    @Aopt = 156 @AdapterName = @AdapterName15 @AdapterProg = @AdapterProg15
  2738. @EndIf @If (157  [= @Option)
  2739.    @Aopt = 157 @AdapterName = @AdapterName16 @AdapterProg = @AdapterProg16
  2740. @EndIf @If (158  [= @Option)
  2741.    @Aopt = 158 @AdapterName = @AdapterName17 @AdapterProg = @AdapterProg17
  2742.  
  2743.  
  2744. @EndIf
  2745.  
  2746.  
  2747.  
  2748. @If (@AexNdisSelected)
  2749.   @AdapterProg = @AdapterProgAEX
  2750.   @AdapterNif  = @AdapterNifAEX
  2751.   @If (!@ExtractMode) @Goto ADAPTERS_DONE @EndIf
  2752. @EndIf
  2753.  
  2754. @If (!@NdisSelected) @Goto ADAPTERS_DONE @EndIf
  2755.  
  2756. @PromptNdis = ""
  2757.  
  2758. @If ((@StrLen(@NdisPath) == 0) && @Removable(@InDrive))
  2759.   @NdisPath = "@InDrive:\\"
  2760. @EndIf
  2761. @BackgroundMode(3,@WinColor,@Black)
  2762.  
  2763. NDIS_PATH:
  2764. @AdapterProg = ""
  2765. @AdapterNif  = ""
  2766. @PromptNdis = "@PromptNdis\n  >>  Clear and @key to return to Adapters Menu.<<"
  2767. @NdisOK = @False
  2768.  
  2769. @If (@FromFloppy) @IgnoreDiskID = @True @EndIf
  2770.  
  2771. @DlgCtrlSize(0,13,0,14,35) @FlushKeyboard()
  2772.  
  2773. @GetString @Nd1
  2774.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  2775.   INSTALL the NDIS Driver for @your Network Adapter
  2776.   @Underline40@Underline10
  2777.  
  2778.   Please insert the manufacturer's driver diskette for @your
  2779.   adapter into a floppy drive, then type the drive letter
  2780.   (and directory path if necessary) and @key.
  2781.  
  2782.   @PromptNdis
  2783.   @Default = "@NdisPath" @Prompt = "Enter NDIS driver directory"
  2784. @EndString
  2785.  
  2786. @NdisPath = @StrConvert("@Nd1","uc")
  2787.  
  2788. @If (@StrLen(@NdisPath) == 1)
  2789.   @d = (@StrIndex("@NdisPath",0))
  2790.   @If (@DriveExists(@d)) @If (@Removable(@d))
  2791.       @NdisPath = "@NdisPath:"
  2792.   @EndIf @EndIf
  2793. @EndIf
  2794.  
  2795. @If (@StrLen(@NdisPath) < 1)
  2796.   @If (@FromFloppy) @IgnoreDiskID = @False @EndIf
  2797.   @If (@ExtractMode) @FlushOptions() @Aopt = 0 @EndIf
  2798.   @NdisPath = ""
  2799.   @Goto ADAPTERS_MENU
  2800. @ElseIf (@StrFind(@NdisPath," ") >= 0)
  2801.   @PromptNdis = ">>> The directory you typed contained spaces.<<<"
  2802.   @Goto NDIS_PATH
  2803. @ElseIf (@StrFind(@ExecutePath,"\\\\") >= 0)
  2804.   @PromptNdis = ">>> The directory you typed contained '\\\\'.<<<"
  2805.   @Goto NDIS_PATH
  2806. @ElseIf (@StrLen("@StrToken("@NdisPath",1,"@Illegal1")") > 0)
  2807.   @s9 = @StrMid("@NdisPath",@StrLen("@StrToken("@NdisPath",0,"@Illegal1")"),1)
  2808.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  2809.   @PromptNdis = ">>> The character  @s9  is not allowed.<<<"
  2810.   @Goto NDIS_PATH
  2811. @ElseIf ("@StrToken("@NdisPath",0,"@Illegal1")" != "@NdisPath")
  2812.   @PromptNdis = ">>>@BadChar<<<"
  2813.   @Goto NDIS_PATH
  2814. @ElseIf ((@StrLen("@StrToken("@NdisPath",0,".\\")") > 8)
  2815.        ||(@StrLen("@StrToken("@NdisPath",1,".\\")") > 8)
  2816.        ||(@StrLen("@StrToken("@NdisPath",2,".\\")") > 8))
  2817.   @PromptNdis = ">>> Directory names must be 8 letters or less.<<<"
  2818.   @Goto NDIS_PATH
  2819. @ElseIf (@Exists("@NdisPath") && !@DirExists("@NdisPath"))
  2820.   @PromptNdis = ">>> \"@NdisPath\" is not a directory.<<<"
  2821.   @Goto NDIS_PATH
  2822. @ElseIf (!@DirExists("@NdisPath"))
  2823.   @If ("@StrMid("@NdisPath",1,1)" == ":")
  2824.     @d = (@StrIndex("@NdisPath",0))
  2825.     @If (!@DriveExists(@d))
  2826.       @PromptNdis = ">>> Drive @d: is not available.<<<"
  2827.       @Goto NDIS_PATH
  2828.     @ElseIf (@StrLen(@NdisPath) == 2)
  2829.       @NdisPath = "@NdisPath\\"
  2830.     @ElseIf ((@StrLen(@NdisPath) == 3) && ("@StrTail("@NdisPath",1)" == "\\"))
  2831.     @Else
  2832.       @PromptNdis = ">>> \"@NdisPath\" is not a valid path.<<<"
  2833.       @Goto NDIS_PATH
  2834.     @EndIf
  2835.   @ElseIf ("@NdisPath" != "\\")
  2836.     @s1 = "@ScriptDrive:"
  2837.     @If ("@StrHead(@NdisPath,1)" != "\\") @s1 = "@s1\\" @EndIf
  2838.     @NdisPath = "@s1@NdisPath"
  2839.     @If (!@DirExists("@NdisPath"))
  2840.       @PromptNdis = ">>> The path \"@NdisPath\" does not exist.<<<"
  2841.       @Goto NDIS_PATH
  2842.     @EndIf
  2843.   @EndIf
  2844. @EndIf
  2845.  
  2846. @PleaseWait("- Searching for NDIS adapter driver file")
  2847.  
  2848. @NdisPath = @StrConvert("@NdisPath","OEM")
  2849. @NdisInstallPath = @StrConvert("@InstallPath","OEM")
  2850.  
  2851. @NdisDriver    = ""
  2852. @NdisDevice    = ""
  2853. @NdisTitle     = ""
  2854. @NdisType      = ""
  2855. @NdisDDir      = ""
  2856. @NdisCopyFiles = ""
  2857.  
  2858. @NifFound  = @False
  2859. @NifDir    = ""
  2860. @NifFile   = ""
  2861. @NifPath   = ""
  2862.  
  2863. @NifList = @FindText("@NdisPath\\*.NIF","Type","IWR")
  2864. @If (@Strlen(@NifList) <= 0) @Goto NIF_DONE @EndIF
  2865.  
  2866. @i = 0
  2867. @k = @StrCount(@NifList," ")
  2868. NIF_LOOP:
  2869.   @NifPath = @StrToken(@NifList,@i)
  2870.   @If (@Strlen(@FindText("@NifPath","OS2","I")) == 0)
  2871.     @NdisType = @GetINI("","Type","@NifPath")
  2872.     @If (@StrFind("@NdisType","NDIS") >= 0)
  2873.       @b = @StrRFind(@NifPath,"\\")
  2874.       @If (@b >= 0)
  2875.     @NifFound = @True
  2876.     @NifDir   = @StrHead(@NifPath,@b)
  2877.     @NifFile  = @StrMid(@NifPath,(@b+1),20)
  2878.       @EndIf
  2879.     @EndIf
  2880.   @EndIF
  2881.   @i = (@i + 1)
  2882.   @If ((@i < @k) && !@NifFound) @Goto NIF_LOOP @EndIf
  2883. NIF_DONE:
  2884.  
  2885. @If (!@NifFound)
  2886.   @NdisDriverFile = "*.DOS"
  2887.   @Goto DRIVER_SEARCH
  2888. @EndIf
  2889.  
  2890. NIF_FOUND:
  2891. @If (@Strlen(@FindText("@NifPath","Model","IW")) > 0)
  2892.   @NifVersion = 1
  2893.   @NdisDriverFile = @GetINI("","DeviceDriver","@NifPath")
  2894.   @NdisDevice     = @GetINI("","DeviceName","@NifPath")
  2895.   @NdisTitle      = @GetINI("","Model","@NifPath")
  2896.   @NdisDDir       = @GetINI("","Path","@NifPath")
  2897.   @NdisCopyFiles  = ""
  2898. @Else
  2899.   @NifVersion = 2
  2900.   @NdisDriverFile = @GetINI("File","Name","@NifPath")
  2901.   @NdisDriverFile = @StrToken(@NdisDriverFile,0," ,")
  2902.   @NdisDevice     = @GetINI("","DriverName","@NifPath")
  2903.   @NdisTitle      = @GetINI("","Title","@NifPath")
  2904.   @NdisDDir       = @GetINI("File","Path","@NifPath")
  2905.   @NdisCopyFiles  = @GetINI("","CopyFile=10","@NifPath")
  2906. @EndIf
  2907.  
  2908. @If (@StrFind(@NdisDriverFile,"\\") >= 0)
  2909.   @b = @StrRFind("@NdisDriverFile","\\")
  2910.   @If (@b >= 0)
  2911.     @NdisDriverFile = @StrMid(@NdisDriverFile,(@b+1),20)
  2912.   @EndIf
  2913. @EndIF
  2914. @NdisDriver = @StrToken(@NdisDriverFile,0,".")
  2915.  
  2916. @If (@Strlen(@NdisDriver) <= 0)
  2917.   @PromptNdis = ">>> NDIS driver name not found in @NifPath <<<"
  2918.   @Goto NDIS_DONE
  2919. @EndIf
  2920.  
  2921. @If ((@StrFind(@NifDir,"\\") >= 0) && (@StrLen(@NdisDDir) > 0))
  2922.   @b = @StrRFind(@NifDir,"\\")
  2923.   @If (@b >= 0)
  2924.     @NdisDriverDir  = "@StrHead(@NifDir,@b)\\@NdisDDir"
  2925.     @NdisDriverPath = "@NdisDriverDir\\@NdisDriverFile"
  2926.     @If (@Exists("@NdisDriverPath"))
  2927.       @NdisDriver = @StrToken(@NdisDriverFile,0,".")
  2928.       @Goto DRIVER_FOUND
  2929.     @EndIf
  2930.   @EndIf
  2931. @EndIf
  2932.  
  2933. DRIVER_SEARCH:
  2934. @NdisDriverPath = @FindFiles("@NdisPath\\@NdisDriverFile","R")
  2935. @NdisDriverPath = @StrToken(@NdisDriverPath,0)
  2936.  
  2937. @s1 = ""
  2938. @If(@Strlen(@NdisDriverPath) > 0)
  2939.   @b = @StrRFind(@NdisDriverPath,"\\")
  2940.   @If (@b >= 0)
  2941.     @NdisDriverDir = @StrHead(@NdisDriverPath,@b)
  2942.     @s1 = @StrMid(@NdisDriverPath,(@b+1),20)
  2943.   @Else
  2944.     @NdisDriverDir = @NdisPath
  2945.   @EndIf
  2946. @Else
  2947.   @NdisDriverDir = ""
  2948.   @PromptNdis = ">>> No NDIS driver was found in \"@NdisPath\".<<<"
  2949.   @Goto NDIS_DONE
  2950. @EndIf
  2951.  
  2952. @If ("@s1" != "@NdisDriverFile")
  2953.   @NdisDriverFile = @s1
  2954.   @NdisDriver     = @StrToken(@NdisDriverFile,0,".")
  2955. @EndIf
  2956.  
  2957. @If (!@Exists("@NdisDriverDir\\@NdisDriverFile"))
  2958.   @PromptNdis = ">>> NDIS driver \"@NdisDriverPath\" not found.<<<"
  2959.   @Goto NDIS_DONE
  2960. @EndIf
  2961.  
  2962. DRIVER_FOUND:
  2963. @If (@Exists("@NdisDriverDir\\@NdisProtocolFile"))
  2964.   @NdisProtocolDir = @NdisDriverDir
  2965. @Else
  2966.   @NdisProtocolDir = ""
  2967.   @s1 = @FindFiles("@NdisPath\\@NdisProtocolFile","R")
  2968.   @i = 0
  2969.   @k = @StrCount(@s1," ")
  2970. INI_LOOP:
  2971.   @s2 = @StrToken(@s1,@i)
  2972.   @If ((@StrFind("@s2","OS2") < 0)
  2973.        && (@Strlen(@FindText("@s2","OS2","I")) == 0))
  2974.     @b = @StrRFind(@s2,"\\")
  2975.     @If (@b >= 0)
  2976.       @i = @k
  2977.       @NdisProtocolDir = @StrHead(@s2,@b)
  2978.     @EndIf
  2979.   @EndIF
  2980.   @i = (@i + 1)
  2981.   @If (@i < @k) @Goto INI_LOOP @EndIf
  2982. @EndIf
  2983.  
  2984. @If (@Strlen(@NdisProtocolDir) <= 0)
  2985.   @PromptNdis = ">>> \"@NdisProtocolFile\" not found in @NdisPath <<<"
  2986.   @Goto NDIS_DONE
  2987. @EndIf
  2988.  
  2989.  
  2990. @PleaseWait("- Building NDIS driver PROTOCOL.INI file")
  2991.  
  2992. @AdapterProg = "@NdisDriverFile"
  2993. @AdapterNif  = "@NdisDriver_NIF"
  2994.  
  2995. @If (!@Exists("@NdisInstallPath")) @MkDir("@NdisInstallPath") @EndIf
  2996. @Copy("@NdisDriverPath","@NdisInstallPath")
  2997. @i = 0
  2998. @k = @StrCount(@NdisCopyFiles,"=")
  2999. COPY_LOOP:
  3000.   @s1 = @StrToken(@NdisCopyFiles,@i,"=")
  3001.   @Copy("@NifDir\\@s1","@NdisInstallPath")
  3002.   @i = (@i + 1)
  3003.   @If (@i < @k) @Goto COPY_LOOP @EndIf
  3004.  
  3005. @Copy("@NifPath","@NdisInstallPath")
  3006. @s1 = @StrToken(@NdisProtocolFile,0,".")
  3007. @FileAttr( "@NdisInstallPath\\@s1.*", "r-" )
  3008. @Copy("@NdisInstallPath\\@NdisProtocolFile","@NdisInstallPath\\@s1.SAV")
  3009. @ProtocolOrg = "@NdisInstallPath\\@s1.ORG"
  3010. @Copy("@NdisProtocolDir\\@NdisProtocolFile","@ProtocolOrg")
  3011.  
  3012. @s1 = "@NdisInstallPath\\@NdisProtocolFile"
  3013. @WRITE("@s1","wt", ";PROTOCOL.INI for @Name Version @Version\n")
  3014. @WRITE("@s1","at", ";------------ using @NdisTitle\n")
  3015. @WRITE("@s1","at", ";\n")
  3016. @WRITE("@s1","at", "[PROTMAN]\n")
  3017. @WRITE("@s1","at", "  DRIVERNAME = PROTMAN$\n")
  3018. @WRITE("@s1","at", "  DYNAMIC = YES\n")
  3019. @WRITE("@s1","at", "\n")
  3020.  
  3021. @s2 = @FindLines("@ProtocolOrg","",1,100,"D~")
  3022. @If (@Strlen(@s2) <= 0)
  3023.   @PromptNdis = ">>> '@NdisProtocolFile' was empty.<<<"
  3024.   @Goto NDIS_DONE
  3025. @EndIf
  3026.  
  3027. @If (@StrLen(@GetINI("@AdapterNif","DriverName","@ProtocolOrg")) > 0)
  3028.   @HeaderFixed = @True
  3029. @Else
  3030.   @HeaderFixed = @False
  3031. @EndIf
  3032.  
  3033. @i = 0
  3034. @k = @StrCount(@s2,"~")
  3035. PROT_LOOP:
  3036.   @s3 = @StrToken(@s2,@i,"~")
  3037.   @s4 = @StrToken(@s3,0)
  3038.   @If (@HeaderFixed)
  3039.     @WRITE("@s1","at", "@s3\n")
  3040.   @ElseIf ((@Strlen(@s3) <= 0) || ("@StrHead(@s4,1)" == ";"))
  3041.     @WRITE("@s1","at", "@s3\n")
  3042.   @Else
  3043.     @WRITE("@s1","at", "[@AdapterNif]\n")
  3044.     @If ("@StrHead(@s4,1)" == "[")
  3045.     @Else
  3046.       @WRITE("@s1","at", "@s3\n")
  3047.     @EndIf
  3048.     @HeaderFixed = @True
  3049.   @EndIf
  3050.   @i = (@i + 1)
  3051.   @If (@i < @k) @Goto PROT_LOOP @EndIf
  3052. PROT_DONE:
  3053.  
  3054. @s7 = @GetINI("@AdapterNif","DriverName", "@s1")
  3055. @If ("@s7" == "@NdisDriver$") @Goto NDIS_OK @EndIf
  3056. @i = 0
  3057. @s6 = ""
  3058. PROT1_LOOP:
  3059.   @s3 = @StrToken(@s2,@i,"~")
  3060.   @s4 = @StrTrim("@StrConvert("@s3","UC")")
  3061.   @s5 = @StrToken("x@s4",1,"[")
  3062.   @s5 = @StrTrim("@StrToken("@s5",0,"]")")
  3063.   @If (@StrLen(@s5) > 0) @s6 = @s5 @EndIf
  3064.   @If ((@StrFind("@s4","DRIVERNAME") >= 0) && (@StrFind("@s4","@NdisDriver") >= 0))
  3065.     @If (@Strlen(@s6) > 0)
  3066.       @s5 = @GetINI("@s6","DriverName","@s1")
  3067.       @If ("@s5" == "@NdisDriver$")
  3068.         @AdapterNif = @s6
  3069.         @Goto NDIS_OK
  3070.       @EndIf
  3071.     @EndIf
  3072.   @EndIf
  3073.   @i = (@i + 1)
  3074.   @If (@i < @k) @Goto PROT1_LOOP @EndIf
  3075.  
  3076. @If (@StrLen(@s7) > 0) @Goto NDIS_OK @EndIf
  3077.  
  3078. PROT_BAD:
  3079. @Display
  3080.    @Cls
  3081.    @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3082.    Cannot build a proper '@NdisProtocolFile'.
  3083.    Please continue with the installation.  When
  3084.    you have finished, consult the NDIS on-line
  3085.    documentation for suggestions or call Artisoft
  3086.    Technical Support for assistance.
  3087.    @FlushKeyboard() @Pause
  3088. @EndDisplay
  3089.  
  3090. NDIS_OK:
  3091. @NdisOK = @True
  3092. @If (@Strlen(@NdisTitle) > 0)
  3093.   @AdapterName = "(NDIS) @NdisTitle"
  3094.   @If (@StrLen(@AdapterName) > 40)
  3095.     @AdapterName = "@StrHead(@AdapterName,40)..."
  3096.   @EndIf
  3097. @EndIf
  3098.  
  3099. NDIS_DONE:
  3100. @s1 = "" @s2 = "" @s3 = "" @s4 = ""
  3101. @s5 = "" @s6 = "" @s7 = ""
  3102.  
  3103. @If (@DebugMode)
  3104.   @BackgroundMode(3,@DebugColor,@Black)
  3105.   @Display
  3106.     @Cls  NDIS Installation Data:
  3107.     Install Directory   = <@NdisInstallPath>
  3108.     NDIS path           = <@NdisPath>
  3109.     Adapter name        = <@AdapterName>
  3110.     Adapter program     = <@AdapterProg>
  3111.     Adapter NIF         = <@AdapterNif>
  3112.     ------------------------------------
  3113.     NIF stuff (@NifFound-@NifVersion)     = <@NifPath>
  3114.     NdisDriverPath      = <@NdisDriverPath>
  3115.     NdisDriverFile      = <@NdisDriverFile>
  3116.     NdisDevice          = <@NdisDevice>
  3117.     NdisTitle           = <@NdisTitle>
  3118.     NdisType            = <@NdisType>
  3119.     NdisDDir            = <@NdisDDir>
  3120.     NdisCopyFiles       = <@NdisCopyFiles>
  3121.     PROTOCOL.INI        = <@NdisProtocolDir\@NdisProtocolFile>
  3122.     @StrToken(@NdisProg,0,".") BIND_TO=@AdapterNif
  3123.     Memory              = @HeapAvail bytes remaining out of @HeapTotal
  3124.     @FlushKeyboard() @Pause
  3125.   @EndDisplay
  3126.   @BackgroundMode(3,@WinColor,@Black)
  3127. @EndIf
  3128.  
  3129. @If (!@NdisOK) @Goto NDIS_PATH @EndIf
  3130.  
  3131. @PromptNdis = ""
  3132.  
  3133.  
  3134.  
  3135. ADAPTERS_DONE:
  3136. @If ((@Strlen("@LibName") > 0) && !@Exists("@LibName"))
  3137.   @Display
  3138.     @Cls
  3139.     @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3140.  
  3141.     Please replace the @Name installation
  3142.     diskette labeled  "Disk 1 of @NumDisks"  into Drive @ScriptDrive:
  3143.     @FlushKeyboard() @Pause
  3144.   @EndDisplay
  3145.   @Goto ADAPTERS_DONE
  3146. @EndIf
  3147.  
  3148. @If (@FromFloppy) @IgnoreDiskID = @False @EndIf
  3149.  
  3150. @If (@ExtractMode)
  3151.   @PleaseWait("- Preparing to extract files")
  3152.   @Goto FINISH_INSTALL
  3153. @EndIf
  3154.  
  3155.  
  3156.  
  3157. @If (@KeepInstall) @Goto NOCONNECT @EndIf
  3158.  
  3159. @If (@InfFileMode)
  3160.   @SetConnect = @False
  3161.   @If ("@InfConnect" == "YES")
  3162.     @SetConnect = @True
  3163.     @DriveLetter1 = @StrToken(@InfDrive1,2,",")
  3164.     @DriveName1   = @StrToken(@InfDrive1,1,",")
  3165.     @DriveServer1 = @StrToken(@InfDrive1,0,",")
  3166.     @DriveLetter2 = @StrToken(@InfDrive2,2,",")
  3167.     @DriveName2   = @StrToken(@InfDrive2,1,",")
  3168.     @DriveServer2 = @StrToken(@InfDrive2,0,",")
  3169.     @PrintPort1   = @StrToken(@InfPrinter1,2,",")
  3170.     @PrintName1   = @StrToken(@InfPrinter1,1,",")
  3171.     @PrintServer1 = @StrToken(@InfPrinter1,0,",")
  3172.     @PrintPort2   = @StrToken(@InfPrinter2,2,",")
  3173.     @PrintName2   = @StrToken(@InfPrinter2,1,",")
  3174.     @PrintServer2 = @StrToken(@InfPrinter2,0,",")
  3175.   @EndIf
  3176.   @Goto CONTINUE_2
  3177. @EndIf
  3178.  
  3179. @ClearOption(11)
  3180. @ClearOption(12)
  3181. @If (@SetConnect)
  3182.   @SetOption(12)
  3183. @Else
  3184.   @SetOption(11)
  3185. @EndIf
  3186.  
  3187. @BackgroundMode(3,@WinColor,@Black)
  3188. @DlgCtrlSize(0,14,1,17,52) @FlushKeyboard()
  3189.  
  3190. @If (@RunWindows)
  3191.    @s1 = "use the @Name Connections programs (NET for DOS"
  3192.    @s2 = "or WNET for Windows) to establish the connections you need."
  3193. @Else
  3194.    @s1 = "use the @Name Connections program (NET.EXE from DOS)"
  3195.    @s2 = "to establish the connections you need."
  3196. @EndIf
  3197.  
  3198. @GetOption @Prompt = "Set up drive or printer connections?"
  3199.    @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3200.    @If (!@RunWindows) @LOCALWINDOW(17,40) @EndIf
  3201.    One of the important features of @Name is to allow you
  3202.    to use files on other computers and to print on other computers'
  3203.    printers.  If you know the names of the computers in your network
  3204.    as well as which drives and printers are "shared", you can
  3205.    set up permanent connections now.  Otherwise, you may wait and
  3206.    @s1
  3207.    @s2
  3208.  
  3209.    Do you want to set up drive or printer connections now?
  3210.  
  3211.    @Option 12 = "SET UP permanent drive or printer connections"
  3212.    @Option 11 = "DO NOT set up any drive or printer connections"
  3213. @EndOption
  3214.  
  3215. @If     (12  [= @Option)
  3216.   @SetConnect = @True
  3217.   @Goto DO_DRIVES
  3218. @EndIf
  3219.  
  3220. NOCONNECT:
  3221. @SetConnect = @False
  3222. @DriveLetter1 = ""
  3223. @DriveName1   = ""
  3224. @DriveServer1 = ""
  3225. @DriveLetter2 = ""
  3226. @DriveName2   = ""
  3227. @DriveServer2 = ""
  3228. @PrintPort1   = ""
  3229. @PrintName1   = ""
  3230. @PrintServer1 = ""
  3231. @PrintName2   = ""
  3232. @PrintServer2 = ""
  3233.  
  3234. @Goto CONTINUE_2
  3235.  
  3236.  
  3237.  
  3238. DO_DRIVES:
  3239.  
  3240. @i = 0
  3241. @ChosenDrives = ""
  3242.  
  3243. NEXT_DRIVE:
  3244. @i = (@i + 1)
  3245.  
  3246. @If (@i == 1)
  3247.   @s1 = @DriveLetter1
  3248.   @s2 = @DriveName1
  3249.   @s3 = @DriveServer1
  3250.   @Goto SETUP_DRIVE
  3251. @ElseIf (@i == 2)
  3252.   @If ("@s1" != "")
  3253.     @DriveLetter1 = @s1
  3254.     @DriveName1   = @s2
  3255.     @DriveServer1 = @s3
  3256.     @s1 = @DriveLetter2
  3257.     @s2 = @DriveName2
  3258.     @s3 = @DriveServer2
  3259.     @Goto SETUP_DRIVE
  3260.   @Else
  3261.     @DriveLetter1 = ""
  3262.     @DriveName1   = ""
  3263.     @DriveServer1 = ""
  3264.     @DriveLetter2 = ""
  3265.     @DriveName2   = ""
  3266.     @DriveServer2 = ""
  3267.   @EndIf
  3268. @ElseIf (@i == 3)
  3269.   @If ("@s1" != "")
  3270.     @DriveLetter2 = @s1
  3271.     @DriveName2   = @s2
  3272.     @DriveServer2 = @s3
  3273.   @Else
  3274.     @DriveLetter2 = ""
  3275.     @DriveName2   = ""
  3276.     @DriveServer2 = ""
  3277.   @EndIf
  3278. @EndIf
  3279.  
  3280. @Goto DO_PRINTERS
  3281.  
  3282. SETUP_DRIVE:
  3283.  
  3284. @s4 = ""
  3285. @s5 = ""
  3286. @If     (@i == 1)
  3287.   @s5 = "first"
  3288.   @s7 = "@FirstAvailable"
  3289.   @s4 = ">>> You can do this before the other computer is set up.<<<"
  3290. @ElseIf (@i == 2)
  3291.   @s5 = "second"
  3292.   @s7 = "@SecondAvailable"
  3293.   @If (@StrFind("@ChosenDrives", "@FirstAvailable") < 0)
  3294.     @s7 = "@FirstAvailable"
  3295.   @EndIf
  3296.   @s4 = ">>> You can connect to more drives later if you need to.<<<"
  3297. @EndIf
  3298.  
  3299. @If (@RunWindows) @s6 = "click on  \"OK\" " @Else @s6 = "press ENTER" @EndIf
  3300.  
  3301. D_CNAME:
  3302.  
  3303. @DlgCtrlSize(0,12,0,13,28) @FlushKeyboard()
  3304.  
  3305. @GetString @Dv3
  3306.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3307.  @If (@i > 1) ANOTHER @Else OTHER @EndIf@!COMPUTER with a DRIVE you want to USE...
  3308.   @Underline40@!@If (!@RunWindows)@!@Underline20@!@EndIf
  3309.  
  3310.   Please type the name of@!@If (@i > 1) another @Else the other @EndIf@!computer that has
  3311.  @If (@i > 1) a @Else the @EndIf@!drive you want to connect to and use.
  3312.  
  3313.  @If ("@s3" == "") Or just @s6 to continue, skipping @If (@i > 1)@!@s5@!@EndIf drive setup. @EndIf
  3314.   @If ((!@RunWindows) && (@i == 1))
  3315.   If you skip permanent drive setup, you will have an extra
  3316.   step to perform every time you turn on @your computer.
  3317.   @EndIf
  3318.   @s4
  3319.   @Default = "@s3" @Prompt = "Enter computer name"
  3320. @EndString
  3321.  
  3322. @s3 = @StrConvert("@Dv3","uc")
  3323.  
  3324. @If (@StrLen(@s3) < 1)
  3325.   @s1 = "" @s2 = "" @s3 = ""
  3326.   @Goto NEXT_DRIVE
  3327. @ElseIf (@StrLen(@s3) > 15)
  3328.   @s4 = ">>> The name you typed was longer than 15 letters.<<<"
  3329.   @Goto D_CNAME
  3330. @ElseIf (@StrFind(@s3," ") >= 0)
  3331.   @s4 = ">>> The name you typed contained spaces.<<<"
  3332.   @Goto D_CNAME
  3333. @ElseIf (@StrFind("@Illegal","@s3") >= 0)
  3334.   @s4 = ">>> The character  @s3  is not allowed.<<<"
  3335.   @Goto D_CNAME
  3336. @ElseIf (@StrLen("@StrToken("@s3",1,"@Illegal")") > 0)
  3337.   @s9 = @StrMid("@s3",@StrLen("@StrToken("@s3",0,"@Illegal")"),1)
  3338.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  3339.   @s4 = ">>> The character  @s9  is not allowed.<<<"
  3340.   @Goto D_CNAME
  3341. @ElseIf ("@StrToken("@s3",0,"@Illegal")" != "@s3")
  3342.   @s4 = ">>>@BadChar<<<"
  3343.   @Goto D_CNAME
  3344. @ElseIf ("@s3" == "@ComputerName")
  3345.   @s4 = ">>> You don't need to connect to your own computer.<<<"
  3346.   @Goto D_CNAME
  3347. @EndIf
  3348.  
  3349.  
  3350. @s4 = ""
  3351. D_DNAME:
  3352. @If ("@s2" == "") @s2 = "C-DRIVE" @EndIf
  3353.  
  3354. @DlgCtrlSize(0,14,2,15,24) @FlushKeyboard()
  3355.  
  3356. @GetString @Dv2
  3357.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3358.     NAME of DRIVE you want to USE on @s3...
  3359.     @Underline40@If (!@RunWindows)@!@Underline20@!@EndIf
  3360.  
  3361.     Please enter the name of the drive on  "@s3"
  3362.     that you want to connect to and use.  This will most likely
  3363.     be the computer's hard disk named "C-DRIVE".  But you can
  3364.     instead choose another hard drive if  "@s3"  has one, or
  3365.     choose a floppy drive named "A-DRIVE" or "B-DRIVE".
  3366.     (Drive names can be up to 8 letters.)
  3367.  
  3368.     @s4
  3369.     @Default = "@s2" @Prompt = "Please enter drive name"
  3370. @EndString
  3371.  
  3372. @s2 = @StrConvert("@Dv2","uc")
  3373.  
  3374. @If (@StrLen(@s2) < 1)
  3375.   @s4 = ">>> You need to enter a drive name.<<<"
  3376.   @Goto D_DNAME
  3377. @ElseIf (@StrLen(@s2) > 8)
  3378.   @s4 = ">>> The name you entered was longer than 8 letters.<<<"
  3379.   @Goto D_DNAME
  3380. @ElseIf (@StrFind(@s2," ") >= 0)
  3381.   @s4 = ">>> The name you typed contained spaces.<<<"
  3382.   @Goto D_DNAME
  3383. @ElseIf (@StrFind("@Illegal","@s2") >= 0)
  3384.   @s4 = ">>> The character  @s2  is not allowed.<<<"
  3385.   @Goto D_DNAME
  3386. @ElseIf (@StrLen("@StrToken("@s2",1,"@AtSign@Illegal")") > 0)
  3387.   @s9 = @StrMid("@s2",@StrLen("@StrToken("@s2",0,"@AtSign@Illegal")"),1)
  3388.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  3389.   @s4 = ">>> The character  @s9  is not allowed.<<<"
  3390.   @Goto D_DNAME
  3391. @ElseIf ("@StrToken("@s2",0,"@AtSign@Illegal")" != "@s2")
  3392.   @s4 = ">>>@BadChar<<<"
  3393.   @Goto D_DNAME
  3394. @EndIf
  3395.  
  3396. @s4 = ""
  3397. @If (@i == 1) @s4 = ">>> If you are not sure, it is safe to use '@s7'.<<<" @EndIf
  3398. D_LETTER:
  3399. @If ("@s1" == "") @s1 = "@s7" @EndIf
  3400.  
  3401. @DlgCtrlSize(0,14,2,15,10) @FlushKeyboard()
  3402.  
  3403. @GetString @Dv1
  3404.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3405.     DRIVE LETTER to use to CONNECT to @s2 on @s3...
  3406.     @Underline40@If (!@RunWindows)@!@Underline20@!@EndIf
  3407.  
  3408.     Please type the letter of an "available" drive on @your
  3409.     computer such as 'H' or 'M' that you want to use
  3410.     to access the drive you selected on "@s3".  This
  3411.     should not be the letter of a drive that is physically
  3412.     mounted in @your computer.  For example, do not use the
  3413.     letter 'C'.
  3414.  
  3415.     @s4
  3416.     @Default = "@s1" @Prompt = "Enter drive letter"
  3417. @EndString
  3418.  
  3419. @s1 = @StrConvert("@Dv1","uc")
  3420.  
  3421. @If ("@StrMid(@s1,1,2)" == ":") @s1 = "@StrHead(@s1,1)" @EndIf
  3422.  
  3423. @If (@StrLen(@s1) < 1)
  3424.   @s4 = ">>> You need to enter a drive letter.<<<"
  3425.   @Goto D_LETTER
  3426. @ElseIf (@StrLen(@s1) > 1)
  3427.   @s4 = ">>> You entered more than one letter.<<<"
  3428.   @Goto D_LETTER
  3429. @ElseIf (@StrFind("@ChosenDrives", "@s1") >= 0)
  3430.   @s4 = ">>> You have already set up Drive @s1.<<<"
  3431.   @Goto D_LETTER
  3432. @ElseIf (@StrFind("@ValidDrives", "@s1") < 0)
  3433.   @s4 = ">>> Valid drive letters are '@ValidDrives'.<<<"
  3434.   @Goto D_LETTER
  3435. @ElseIf (@StrFind("@AvailableDrives", "@s1") < 0)
  3436.   @s4 = ">>> Available drives are '@AvailableDrives'.<<<"
  3437.   @Goto D_LETTER
  3438. @EndIf
  3439.  
  3440. @ChosenDrives = "@ChosenDrives@s1"
  3441. D_DONE:
  3442.  
  3443. @Goto NEXT_DRIVE
  3444.  
  3445.  
  3446.  
  3447. DO_PRINTERS:
  3448.  
  3449. @i = 0
  3450. @ChosenPorts  = ""
  3451.  
  3452. NEXT_PRINTER:
  3453. @i = (@i + 1)
  3454.  
  3455. @If     (@i == 1)
  3456.   @s1 = @PrintPort1
  3457.   @s2 = @PrintName1
  3458.   @s3 = @PrintServer1
  3459.   @Goto SETUP_PRINTER
  3460. @ElseIf (@i == 2)
  3461.   @If ("@s1" != "")
  3462.     @PrintPort1   = @s1
  3463.     @PrintName1   = @s2
  3464.     @PrintServer1 = @s3
  3465.   @Else
  3466.     @PrintPort1 = ""
  3467.     @PrintName1   = ""
  3468.     @PrintServer1 = ""
  3469.   @EndIf
  3470. @EndIf
  3471. @PrintPort2 = ""
  3472. @PrintName2   = ""
  3473. @PrintServer2 = ""
  3474.  
  3475. @Goto CONTINUE_2
  3476.  
  3477. SETUP_PRINTER:
  3478.  
  3479. @s4 = ""
  3480. @If     (@i == 1)
  3481.   @s5 = "first"  @x5 = "LPT1"
  3482.   @s4 = ">>> You can do this before the other computer is set up.<<<"
  3483. @ElseIf (@i == 2)
  3484.   @s5 = "second"  @x5 = "LPT2"
  3485.   @s4 = ">>> You can connect to more printers later if you need to.<<<"
  3486. @EndIf
  3487.  
  3488. P_CNAME:
  3489.  
  3490. @s6 = ""
  3491. @If ("@s3" == "")
  3492.   @s6 = "Or just @key to continue, skipping printer setup."
  3493. @EndIf
  3494. @s7 = ""
  3495. @s8 = "type the name of the other computer that has the"
  3496. @s9 = "@s5 printer you want to connect to and use."
  3497. @s10 = "If you skip printer setup now, you will have an extra step"
  3498. @s11 = "to perform during @your daily printer-sharing activities."
  3499. @If ((@i == 1) && @Share && ("@s3" == ""))
  3500.   @If (@InstallWindows)
  3501.     @If ("@DefaultWPrintPort" == "LPT1")
  3502.        @s6 = "If you want to use the @DefaultWPrintName printer that is"
  3503.        @s7 = "already attached to @DefaultWPrintPort on @your computer, @key now."
  3504.        @s8 = "Otherwise @s8"
  3505.        @s10 = ""
  3506.        @s11 = ""
  3507.     @EndIf
  3508.   @Else
  3509.     @If (@Lpt(1))
  3510.        @s6 = "If you want to use the printer that may already be"
  3511.        @s7 = "attached to LPT1 on @your computer, @key now."
  3512.        @s8 = "Otherwise @s8"
  3513.        @s10 = ""
  3514.        @s11 = ""
  3515.     @EndIf
  3516.   @EndIf
  3517. @EndIf
  3518. @If ("@s7" == "")
  3519.   @x1 = "@s8"
  3520.   @s8 = "@s6"
  3521.   @s6 = "Please @x1"
  3522.   @s7 = "@s9"
  3523.   @If (@Share)
  3524.     @s9 = ""
  3525.   @Else
  3526.     @s9 = "If you have a printer you can still use it, but it won't be shared."
  3527.   @EndIf
  3528.   @If (@RunWindows)
  3529.     @s10 = ""
  3530.     @s11 = ""
  3531.   @EndIf
  3532. @EndIf
  3533.  
  3534. @DlgCtrlSize(0,16,0,17,28) @FlushKeyboard()
  3535.  
  3536. @GetString @Pt3
  3537.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3538.   WHAT COMPUTER has the PRINTER ATTACHED ?
  3539.   @Underline40@If (!@RunWindows)@!@Underline20@!@EndIf
  3540.  
  3541.   @s6
  3542.   @s7
  3543.  
  3544.   @s8
  3545.   @s9
  3546.  
  3547.   @s10
  3548.   @s11
  3549.  
  3550.   @s4
  3551.   @Default = "@s3" @Prompt = "Enter computer name"
  3552. @EndString
  3553.  
  3554. @s3 = @StrConvert("@Pt3","uc")
  3555.  
  3556. @If (@StrLen(@s3) < 1)
  3557.   @s1 = "" @s2 = "" @s3 = ""
  3558.   @Goto NEXT_PRINTER
  3559. @ElseIf (@StrLen(@s3) > 15)
  3560.   @s4 = ">>> The name you entered was longer than 15 letters.<<<"
  3561.   @Goto P_CNAME
  3562. @ElseIf (@StrFind(@s3," ") >= 0)
  3563.   @s4 = ">>> The name you typed contained spaces.<<<"
  3564.   @Goto P_CNAME
  3565. @ElseIf (@StrFind("@Illegal","@s3") >= 0)
  3566.   @s4 = ">>> The character  @s3  is not allowed.<<<"
  3567.   @Goto P_CNAME
  3568. @ElseIf (@StrLen("@StrToken("@s3",1,"@Illegal")") > 0)
  3569.   @s9 = @StrMid("@s3",@StrLen("@StrToken("@s3",0,"@Illegal")"),1)
  3570.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  3571.   @s4 = ">>> The character  @s9  is not allowed.<<<"
  3572.   @Goto P_CNAME
  3573. @ElseIf ("@StrToken("@s3",0,"@Illegal")" != "@s3")
  3574.   @s4 = ">>>@BadChar<<<"
  3575.   @Goto P_CNAME
  3576. @ElseIf ((!@Share) && ("@s3" == "@ComputerName"))
  3577.   @s4 = ">>> You didn't share @your computer's printer.<<<"
  3578.   @Goto P_CNAME
  3579. @EndIf
  3580.  
  3581.  
  3582. @s4 = ""
  3583. P_PNAME:
  3584. @If ("@s2" == "") @s2 = "@@PRINTER" @EndIf
  3585.  
  3586. @DlgCtrlSize(0,13,2,14,24) @FlushKeyboard()
  3587.  
  3588. @GetString @Pt2
  3589.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3590.     NAME of PRINTER you want to USE...
  3591.     @Underline40@If (!@RunWindows)@!@Underline20@!@EndIf
  3592.  
  3593.     Please enter the name of the printer on "@s3"
  3594.     that you want to connect to and use.  This will most
  3595.     likely be the default name "@@PRINTER".  However, you
  3596.     can delete "@@PRINTER" and type in another name such as
  3597.     "@@LASER".  (Printer names always begin with "@AtSign".)
  3598.  
  3599.     @s4
  3600.     @Default = "@s2" @Prompt = "Enter printer name"
  3601. @EndString
  3602.  
  3603. @s2 = @StrConvert("@Pt2","uc")
  3604.  
  3605. @If (@StrLen(@s2) < 1)
  3606.   @s4 = ">>> You need to enter a printer name.<<<"
  3607.   @Goto P_PNAME
  3608. @ElseIf ("@StrHead("@s2",1)" != "@AtSign")
  3609.   @s4 = ">>> Please remember to begin the name with \"@AtSign\".<<<"
  3610.   @Goto P_PNAME
  3611. @ElseIf (@StrLen(@s2) > 8)
  3612.   @s4 = ">>> The name you typed was longer than 8 letters.<<<"
  3613.   @Goto P_PNAME
  3614. @ElseIf (@StrFind(@s2," ") >= 0)
  3615.   @s4 = ">>> The name you typed contained spaces.<<<"
  3616.   @Goto P_PNAME
  3617. @ElseIf (@StrFind("@Illegal","@s2") >= 0)
  3618.   @s4 = ">>> The character  @s2  is not allowed.<<<"
  3619.   @Goto P_PNAME
  3620. @ElseIf (@StrLen("@StrToken("@s2",1,"@Illegal")") > 0)
  3621.   @s9 = @StrMid("@s2",@StrLen("@StrToken("@s2",0,"@Illegal")"),1)
  3622.   @If ("@s9" == "%") @s9 = "%%" @EndIf
  3623.   @s4 = ">>> The character  @s9  is not allowed.<<<"
  3624.   @Goto P_PNAME
  3625. @ElseIf ("@StrToken("@s2",0,"@Illegal")" != "@s2")
  3626.   @s4 = ">>>@BadChar<<<"
  3627.   @Goto P_PNAME
  3628. @EndIf
  3629.  
  3630. @s4 = ""
  3631.  
  3632. P_TNAME:
  3633. @If ("@s1" == "") @s1 = "@x5" @EndIf
  3634.  
  3635. @If (("@s2" != "@@PRINTER") && ("@s4" == ""))
  3636.   @s4 = ">>> Use \"Net Manager\" to set up \"@s2\" on \"@s3\".<<<"
  3637. @EndIf
  3638.  
  3639. @DlgCtrlSize(0,13,0,14,8) @FlushKeyboard()
  3640.  
  3641. @GetString @Pt1
  3642.   @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3643.   PRINTER PORT on @your COMPUTER...
  3644.   @Underline40@If (!@RunWindows)@!@Underline20@!@EndIf
  3645.  
  3646.   Please enter the name of the printer port on @your computer
  3647.   such as LPT1 or LPT2 that @your application programs will
  3648.   use to print out on @your @s5 printer.  The documents
  3649.   you send to the port you select will come out on the
  3650.   printer named  "@s2"  on computer  "@s3".
  3651.  
  3652.   @s4
  3653.   @Default = "@s1" @Prompt = "Enter printer port"
  3654. @EndString
  3655.  
  3656. @s1 = @StrConvert("@Pt1","uc")
  3657.  
  3658. @If (@StrLen(@s1) < 1)
  3659.   @s4 = ">>> You need to enter a printer port.<<<"
  3660.   @Goto P_TNAME
  3661. @ElseIf (@StrFind("@ChosenPorts", "@s1") >= 0)
  3662.   @s4 = ">>> You have already set up printer port @s1.<<<"
  3663.   @Goto P_TNAME
  3664. @ElseIf (@StrFind("@ValidPorts", "@s1") < 0)
  3665.   @s4 = ">>> Valid port names are @ValidPorts.<"
  3666.   @Goto P_TNAME
  3667. @ElseIf (@StrLen(@s1) != 4)
  3668.   @If (@StrLen(@s1) < 4) @s5 = "shorter" @Else @s5 = "longer" @EndIf
  3669.   @s4 = ">>> The name you entered was @s5 than 4 letters.<<<"
  3670.   @Goto P_TNAME
  3671. @EndIf
  3672.  
  3673. @ChosenPorts = "@ChosenPorts@s1"
  3674. P_DONE:
  3675.  
  3676. @Goto NEXT_PRINTER
  3677.  
  3678.  
  3679. CONTINUE_2:
  3680.  
  3681. @s1 = ""  @s2 = ""
  3682. @If ("@DriveLetter1" != "") @s1 = "Drive @DriveLetter1:      @Sdrive will be connected to  \"@DriveName1\"  on  \"@DriveServer1\"" @EndIf
  3683. @If ("@DriveLetter2" != "") @s2 = "Drive @DriveLetter2:      @Sdrive will be connected to  \"@DriveName2\"  on  \"@DriveServer2\"" @EndIf
  3684.  
  3685. @s3 = "" @s4 = ""  @s5 = ""
  3686. @If (@Share)
  3687.  @If ("@PrintPort1" == "")
  3688.   @If (@InstallWindows && @ToHard)
  3689.    @If ("@DefaultWPrintPort" == "LPT1")
  3690.      @PrintPort1   = @DefaultWPrintPort
  3691.      @PrintServer1 = @ComputerName
  3692.      @PrintName1   = "@AtSign@!PRINTER"
  3693.      @s5 = "@your @DefaultWPrintName"
  3694.    @EndIf
  3695.   @Else
  3696.    @If (@Lpt(1))
  3697.      @PrintPort1   = "LPT1"
  3698.      @PrintServer1 = @ComputerName
  3699.      @PrintName1   = "@AtSign@!PRINTER"
  3700.      @If (@ToHard) @s5 = "\"@PrintName1\" on @your computer" @EndIf
  3701.    @EndIf
  3702.   @EndIf
  3703.  @Else
  3704.   @If ("@PrintServer1" == "@ComputerName")
  3705.     @s5 = "\"@PrintName1\" on @your computer"
  3706.   @EndIf
  3707.  @EndIf
  3708. @EndIf
  3709.  
  3710. @If ("@PrintPort1" != "")
  3711.   @If ("@s5" == "" ) @s5 = "\"@PrintName1\"  on  \"@PrintServer1\"" @EndIf
  3712.   @s3 = "Printer @PrintPort1  @Sprint will be connected to  @s5"
  3713. @EndIf
  3714. @If ("@PrintPort2" != "")
  3715.   @s5 = "\"@PrintName2\"  on  \"@PrintServer2\""
  3716.   @s4 = "Printer @PrintPort2  @Sprint will be connected to  @s5"
  3717. @EndIf
  3718.  
  3719. @If (@KeepInstall)
  3720.   @s1 = "" @s2 = "" @s3 = "" @s4 = ""
  3721.   @If (@Share)
  3722.     @s3 = "Control Directory for @ComputerName upgrade is @SharePath"
  3723.   @EndIf
  3724. @EndIf
  3725.  
  3726. @If (@InstallWindows) @s5 = "Windows" @Else @s5 = "DOS" @EndIf
  3727. @If ("@POname" != "") @s7 = " \"@POname\"" @Else @s7 = "" @EndIf
  3728.  
  3729. @ClearOption(11)
  3730. @ClearOption(12)
  3731. @ClearOption(13)
  3732.  
  3733. @BackgroundMode(3,@WinColor,@Black)
  3734. @DlgCtrlSize(0,20,0,23,40) @FlushKeyboard()
  3735.  
  3736. @GetOption @Prompt = "@Name Final Information Check"
  3737.  @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3738.  @If (!@RunWindows) @LOCALWINDOW(21,40) @EndIf
  3739.  You have specified the following installation information
  3740.  for @Name for @s5:
  3741.  
  3742.  Installation Drive:     @Sdrive @OutDrive:       @Options0
  3743.  Installation Directory: @Sxxdir @InstallDir
  3744.  Computer Name:          @Sxname @ComputerName
  3745.  Share Drives @AndSign Printers:@Sshare@If (!@Share) NO @Else YES@!@If (@NewInstall) - Allow @Logins Connections @EndIf @EndIf
  3746.  Network Adapter:        @Sadapt @AdapterName
  3747.  Extra Options:          @Sopt1 @Options1
  3748.                          @Sopt2 @Options2
  3749.  @s1
  3750.  @s2
  3751.  @s3
  3752.  @s4
  3753. @If (@StrLen("@s2@s4") > 0) ** Use the Net program later if you want more connections ** @EndIf
  3754.   @Option 11 = "OK to perform the installation"
  3755.   @Option 12 = "Go back and re-enter the information"
  3756. @If (@MenuMode)
  3757.   @Option 13 = "RETURN to Installation Menu"
  3758. @EndIf
  3759. @EndOption
  3760.  
  3761. @If     (12  [= @Option)
  3762.     @InfFileMode = @False
  3763.     @Goto INSTALL
  3764. @ElseIf (13  [= @Option)
  3765.     @Goto MAINMENU
  3766. @EndIf
  3767.  
  3768.  
  3769.  
  3770. PROMPTS_DONE:
  3771.  
  3772. @If (@InstallMode) @Goto FINISH_INSTALL @EndIf
  3773.  
  3774. @BackgroundMode(3,@Red,@Red)
  3775. @Display
  3776.   @Cls
  3777.   Unexpected termination of @Name Installation Program.
  3778.   Please report to Artisoft.
  3779.   @FlushKeyboard() @Pause
  3780.   @Abort
  3781. @EndDisplay
  3782.  
  3783.  
  3784. FINISH_INSTALL:
  3785. @If (!@ToFloppy) @Goto DISK_OK @EndIf
  3786.  
  3787. TEST_FLOPPY:
  3788. @If (@DiskFree(@OutDrive) < 0)
  3789.   @Display
  3790.     @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3791.  
  3792.     Please place a formatted floppy diskette
  3793.     into Drive @OutDrive to receive the @Name files..
  3794.     @FlushKeyboard() @Pause
  3795.   @EndDisplay
  3796.   @Goto TEST_FLOPPY
  3797. @EndIf
  3798.  
  3799. @MakeDiskId = @False
  3800.  
  3801. DISK_OK:
  3802.  
  3803. @PleaseWait()
  3804.  
  3805. @AnsiInstallPath = @InstallPath
  3806. @AnsiExecutePath = @ExecutePath
  3807. @Subdir       = @StrConvert("@Subdir","OEM")
  3808. @InstallPath  = @StrConvert(@InstallPath,"OEM")
  3809. @ExecutePath  = @StrConvert(@ExecutePath,"OEM")
  3810. @SharePath    = @StrConvert(@SharePath,"OEM")
  3811. @XSharePath   = @StrConvert(@XSharePath,"OEM")
  3812. @MailInstallPath = @StrConvert(@MailInstallPath,"OEM")
  3813. @MailInstallDataPath = @StrConvert(@MailInstallDataPath,"OEM")
  3814. @ComputerName = @StrConvert(@ComputerName,"OEM")
  3815. @DriveName1   = @StrConvert(@DriveName1,"OEM")
  3816. @DriveServer1 = @StrConvert(@DriveServer1,"OEM")
  3817. @DriveName2   = @StrConvert(@DriveName2,"OEM")
  3818. @DriveServer2 = @StrConvert(@DriveServer2,"OEM")
  3819. @PrintName1   = @StrConvert(@PrintName1,"OEM")
  3820. @PrintServer1 = @StrConvert(@PrintServer1,"OEM")
  3821. @PrintName2   = @StrConvert(@PrintName2,"OEM")
  3822. @PrintServer2 = @StrConvert(@PrintServer2,"OEM")
  3823. @EnvLanCfg    = "@ExecutePath"
  3824. @EnvLanDir    = "@XSharePath"
  3825. @AnsiEnvLanDir = @StrConvert(@EnvLanDir,"ANSI")
  3826. @LinkPath     = "@AnsiExecutePath\\NW"
  3827. @If ("@MailTempPath" == "")
  3828.   @MailTempPath = "@InstallPath\\TEMP"
  3829. @EndIf
  3830. @AnsiMailTempPath = @StrConvert(@MailTempPath,"ANSI")
  3831.  
  3832. @If (@MailEnabled && !@InstallWindows)
  3833.   @ArtmailIni = "@MailInstallPath\\@ArtmailIni"
  3834. @EndIf
  3835.  
  3836.  
  3837. @If (@ExtractMode)
  3838.   @BackgroundMode(3,@WinColor,@Black)
  3839.   @Display
  3840.     @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  3841.  
  3842.     FILE  EXTRACTION
  3843.     @Underline20
  3844.  
  3845.     @Name @Registered Version @Version files will
  3846.     be extracted to @InstallPath.
  3847.     @FlushKeyboard() @Pause
  3848.   @EndDisplay
  3849.  
  3850.   @BackgroundMode(3,@WinColor,@Blue)
  3851.   @PleaseWait()
  3852.   @Goto FINISH_FILES
  3853. @EndIf
  3854.  
  3855. @If (!@InstallMode) @Goto FINISH_FILES @EndIf
  3856.  
  3857. @If (@ChangeSystemFiles)
  3858.   @ConfigChanged   = @True
  3859.   @AutoexecChanged = @True
  3860.   @StartNetChanged = @True
  3861. @EndIf
  3862.  
  3863. @If (@ToHard && @InstallWindows && !@NoWindowsMode)
  3864.   @SystemIniChanged  = @True
  3865.   @WinIniChanged     = @True
  3866.   @WinFileChanged    = @True
  3867.   @ProgmanIniChanged = @True
  3868.   @WnetIniChanged    = @True
  3869.   @WnetMgrIniChanged = @True
  3870. @EndIf
  3871.  
  3872. @ProtocolIniChanged = (@NdisSelected || @AexNdisSelected)
  3873. @MailIniChanged = @MailEnabled
  3874.  
  3875. @If (@ToFloppy || @ToNetwork)
  3876.   @NewBootDrive = @OutDrive
  3877.   @Config = "@OutDrive:@StrMid(@Config,2,50)"
  3878.   @Autoexec = "@OutDrive:@StrMid(@Autoexec,2,50)"
  3879. @EndIf
  3880.  
  3881. @i = 0
  3882. @s1 = @StrToken(@Config,0,".")
  3883. @s2 = "@WindowsPath\\WIN"
  3884. EXISTS_LOOP:
  3885.    @If (@i > 50) @Goto EXISTS_DONE @EndIf
  3886.    @i = (@i + 1)
  3887.    @Ext = @StrTail("000@i", 3)
  3888.    @If (@Exists("@s1.@Ext")) @Goto EXISTS_LOOP
  3889.    @ElseIf (@ToHard)
  3890.      @If (@Exists("@s2.@Ext")) @Goto EXISTS_LOOP @EndIf
  3891.    @EndIf
  3892. EXISTS_DONE:
  3893.  
  3894. @If (!@Exists("@InstallPath")) @MkDir("@InstallPath") @EndIf
  3895.  
  3896. @SetConfig  @Terse
  3897.   @If (@ConfigChanged) @Overwrite
  3898.   @Else @DiskProtoAll @EndIf
  3899.   @Buffers = 30
  3900.   @LastDrive = Z
  3901.   @If (@Share)
  3902.     @Files = 100
  3903.   @Else
  3904.     @Files = 60
  3905.   @EndIf
  3906. @EndConfig
  3907.  
  3908. @If ("@FindText("@AutoExec","SHARE","I")@FindText("@Config","SHARE","I")" != "")
  3909.   @ShareExe = @True
  3910. @Endif
  3911.  
  3912. @If ("@FindText("@AutoExec","QEMM","I")@FindText("@Config","QEMM","I")" != "")
  3913.    @Qemm = @True
  3914. @Endif
  3915.  
  3916. @s1 = "@Call@ExecutePath\\STARTNET.BAT"
  3917.  
  3918. @SetAutoExec  @Terse
  3919.   @If (@AutoexecChanged) @Overwrite
  3920.   @Else @DiskProtoAll @EndIf
  3921.   @If ("@FindText("@AutoExec","STARTNET","IW")" != "")
  3922.     @Verbatim("@s1","STARTNET",0)
  3923.   @ElseIf ("@FindText("@AutoExec","MSCDEX","IW")" != "")
  3924.     @Verbatim("@s1","MSCDEX",1)
  3925.   @Else
  3926.     @Verbatim("@s1","WIN",1)
  3927.   @EndIf
  3928. @EndAutoExec
  3929.  
  3930. @If (@NdisSelected || @AexNdisSelected || @NcpEnabled)
  3931.   @SetConfig  @Terse
  3932.     @If (@ConfigChanged) @Overwrite
  3933.     @Else @DiskProtoAll @EndIf
  3934.     @Device = "@ExecutePath\\@ProtmanProg /I:@ExecutePath"
  3935.     @If ((@NdisSelected || @AexNdisSelected) && !@NcpEnabled)
  3936.       @Device = "@ExecutePath\\@AdapterProg"
  3937.     @EndIf
  3938.   @EndConfig
  3939. @EndIf
  3940.  
  3941.  
  3942. @If (@ConfigChanged)
  3943.   @SysDrive = "@BootDrive"  @SysDir = ""  @SysFile = "CONFIG"
  3944.   @s1 = "@SysDrive:@SysDir\\@SysFile.SYS" @s2 = "@SysDrive:@SysDir\\@SysFile.@Ext"
  3945.   @If (@Exists("@s1")) @ConfigMsg = "Old  @s1 ---> @s2" @EndIf
  3946.   @Copy( "@s1", "@s2")
  3947. @EndIf
  3948.  
  3949. @If (@AutoExecChanged)
  3950.   @SysDrive = "@BootDrive"  @SysDir = ""  @SysFile = "AUTOEXEC"
  3951.   @s1 = "@SysDrive:@SysDir\\@SysFile.BAT" @s2 = "@SysDrive:@SysDir\\@SysFile.@Ext"
  3952.   @If (@Exists("@s1")) @AutoExecMsg = "Old  @s1 ---> @s2" @EndIf
  3953.   @Copy( "@s1", "@s2")
  3954. @EndIf
  3955.  
  3956. @If (@StartNetChanged)
  3957.   @SysFile = "STARTNET"
  3958.   @s1 = "@InstallPath\\@SysFile.BAT" @s2 = "@InstallPath\\@SysFile.@Ext"
  3959.   @If (@Exists("@s1")) @StartnetMsg = "Old  @s1 ---> @s2" @EndIf
  3960.   @Copy( "@s1", "@s2")
  3961.   @StartPath = @s1
  3962. @Else
  3963.   @StartPath = "@InstallPath\\STARTNET.NEW"
  3964. @EndIf
  3965. @SysFile = "SYSTEM"
  3966. @If (@SystemIniChanged)
  3967.   @s1 = "@WindowsPath\\@SysFile.INI" @s2 = "@WindowsPath\\@SysFile.@Ext"
  3968.   @If (@Exists("@s1")) @SystemIniMsg = "Old  @s1 ---> @s2" @EndIf
  3969.   @Copy( "@s1", "@s2")
  3970.   @SystemIni = "@SysFile.INI"
  3971. @Else
  3972.   @SystemIni = "@InstallPath\\@SysFile.NEW"
  3973. @EndIf
  3974.  
  3975. @SysFile = "WIN"
  3976. @If (@WinIniChanged)
  3977.   @s1 = "@WindowsPath\\@SysFile.INI" @s2 = "@WindowsPath\\@SysFile.@Ext"
  3978.   @If (@Exists("@s1")) @WinIniMsg = "Old  @s1 ---> @s2" @EndIf
  3979.   @Copy( "@s1", "@s2")
  3980.   @WinIni = "@SysFile.INI"
  3981. @Else
  3982.   @WinIni = "@InstallPath\\@SysFile.NEW"
  3983. @EndIf
  3984.  
  3985. @SysFile = "WINFILE"
  3986. @If (@WinFileChanged)
  3987.   @s1 = "@WindowsPath\\@SysFile.INI" @s2 = "@WindowsPath\\@SysFile.@Ext"
  3988.   @Copy( "@s1", "@s2")
  3989. @EndIf
  3990.  
  3991. @If (@ProtocolIniChanged)
  3992.   @SysFile = @StrToken(@NdisProtocolFile,0,".")
  3993.   @s1 = "@InstallPath\\@SysFile.SAV" @s2 = "@InstallPath\\@SysFile.@Ext"
  3994.   @If (@Exists("@s1")) @ProtocolIniMsg = "Old  @InstallPath\\@NdisProtocolFile ---> @s2" @EndIf
  3995.   @Copy( "@s1", "@s2") @Delete(@s1)
  3996. @EndIf
  3997.  
  3998. @If (@ProgmanIniChanged && @ToHard)
  3999.   @SysFile = "PROGMAN"
  4000.   @s1 = "@WindowsPath\\@SysFile.INI" @s2 = "@WindowsPath\\@SysFile.@Ext"
  4001.   @If (@Exists("@s1")) @ProgmanIniMsg = "Old  @s1 ---> @s2" @EndIf
  4002.   @Copy( "@s1", "@s2")
  4003. @EndIf
  4004.  
  4005. @If (@WnetIniChanged)
  4006.   @SysFile = "WNET"
  4007.   @s1 = "@WindowsPath\\@SysFile.INI" @s2 = "@WindowsPath\\@SysFile.@Ext"
  4008.   @Copy( "@s1", "@s2")
  4009.   @If (@NewInstall) @Delete( "@s1") @EndIf
  4010. @EndIf
  4011.  
  4012. @If (@WnetMgrIniChanged)
  4013.   @SysFile = "WNET_MGR"
  4014.   @s1 = "@WindowsPath\\@SysFile.INI" @s2 = "@WindowsPath\\@SysFile.@Ext"
  4015.   @Copy( "@s1", "@s2")
  4016.   @If (@NewInstall) @Delete( "@s1") @EndIf
  4017. @EndIf
  4018.  
  4019. @If (@MailIniChanged)
  4020.   @SysFile = "ARTMAIL"
  4021.   @s1 = "@WindowsPath\\@SysFile.INI" @s2 = "@WindowsPath\\@SysFile.@Ext"
  4022.   @Copy( "@s1", "@s2")
  4023.   @If (@NewInstall) @Delete( "@s1") @EndIf
  4024. @EndIf
  4025.  
  4026.  
  4027. @Sessions = (@Logouts + @Logins + @LinkExtra)
  4028. @Ncbs     = (12 + @LinkExtra)
  4029.  
  4030. @If (@Share)
  4031.   @Ncbs = (@Ncbs + @Logins + 12)
  4032.   @Sessions = (@Sessions + 3)
  4033. @EndIf
  4034.  
  4035. @RxBuffers = 4
  4036. @ParamFile = "STARTNET.CFG"
  4037. @ParamPath = "@InstallPath\\@ParamFile"
  4038. @LoginParam = "@AtSign@ParamFile"
  4039. @NetbiosParam = "@AtSign@ParamFile"
  4040. @ShareArgs = "/L:100"
  4041.  
  4042. @If ((@OSmajor < 5) || (@CPU < 386) || (@EXTTotal < 100) || @Qemm || !@ToHard)
  4043.    @Loadhigh  = ""
  4044. @Else
  4045.    @Loadhigh  = "LOADHIGH "
  4046. @EndIf
  4047.  
  4048. @If (@DebugMode)
  4049.   @BackgroundMode(3,@DebugColor,@Black)
  4050.   @Display
  4051.     Go and "@@Finish" now
  4052.     Ext = @Ext
  4053.     StartPath = @StartPath
  4054.     OS vers   = @OSmajor.@OSminor
  4055.     CPU       = @CPU
  4056.     Memory    = @HeapAvail bytes remaining out of @HeapTotal
  4057.     Share     = @Share
  4058.     Logins(@Logins)  Logouts(@Logouts)  Ncbs(@Ncbs)  Sessions(@Sessions)
  4059.     Loadhigh  = @Loadhigh   QEMM = @Qemm
  4060.     StartupPath = @StartupPath
  4061.     InitControlProg = @InitControlProg
  4062.     Windows INI files:  @SystemIni   @WinIni
  4063.     @FlushKeyboard() @Pause
  4064.   @EndDisplay
  4065. @EndIf
  4066.  
  4067. @If (@RunWindows) @s6 = "click on  \"OK\" " @Else @s6 = "press ENTER" @EndIf
  4068. @BackgroundMode(3,@WinColor,@Black)
  4069.  
  4070. @If (@KeepInstall)
  4071.   @Display
  4072.    @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  4073.    Proceed with the Upgrade Installation of @Name Version @Version
  4074.    @Underline40@Underline20@If (!@RunWindows)@!@Underline10@!@EndIf
  4075.    New @Name files will now be placed on your computer in
  4076.    @InstallPath.  Your original @Name startup commands
  4077.    contained in AUTOEXEC.BAT or STARTNET.BAT will be
  4078.    retained and the accounts and resources contained in the
  4079.    control  directory at @SharePath will be unchanged.
  4080.    @If (@InstallServices)
  4081.    >> You selected "Installation Services", so a new INSTALL disk
  4082.         resource will be added. @EndIf @If (@MailServer)
  4083.    >> You are installing an Artisoft Exchange Mail Post Office, so AMAIL and
  4084.         AMAILPRG resources and ADMIN and SYSTEM accounts will be added. @EndIf @If (@NdisSelected || @AexNdisSelected)
  4085.    >> You installed an NDIS adapter driver.  You may need to make changes to
  4086.         your startup. (See CONFIG.NEW and STARTNET.NEW) @EndIf @If (@NcpEnabled)
  4087.    >> To enable connecting to a Novell@Registered server, you need to make
  4088.         changes to your startup. (See STARTNET.NEW and STARTNET.CFG) @EndIf @If (@SmbEnabled)
  4089.    >> To enable connecting to a Microsoft@Registered server, you need to make
  4090.         changes to your startup. (See STARTNET.NEW and STARTNET.CFG) @EndIf
  4091.    @Underline40@Underline20@If (!@RunWindows)@!@Underline10@!@EndIf
  4092.    @If (@RunWindows)@!Please @s6 to continue... @EndIf @FlushKeyboard() @Pause
  4093.   @EndDisplay
  4094.   @Goto END_CONFIG
  4095. @EndIf
  4096.  
  4097. @If (@ToHard && @ChangeSystemFiles)
  4098.   @s9 = "Notes on @your Computer's Changed Configuration"
  4099.   @s10 = "computer"
  4100.   @s8 = "The"
  4101.   @s2 = "whenever you turn the computer on"
  4102.   @s5 = "Your previous startup files will be saved with the following names:"
  4103.   @s3 = ""
  4104. @ElseIf (@ToFloppy)
  4105.   @s9 = "  Notes on Your Floppy Configuration..."
  4106.   @s10 = "floppy diskette"
  4107.   @s8 = "The"
  4108.   @s2 = "if you boot from this floppy"
  4109. @Else
  4110.   @If (@ToNetwork) @s4 = "network"
  4111.   @ElseIf (@ToHard) @s4 = "hard"
  4112.   @Else @s4 = "STRANGE" @EndIf
  4113.  
  4114.   @s9 = "  How to Finish @your Computer's Configuration..."
  4115.   @s10 = "computer"
  4116.   @s8 = "A sample"
  4117.   @s2 = "once you have made it part of @your boot sequence"
  4118.   @s5 = "You are installing to a @s4 drive.  You will need to complete"
  4119.   @s3 = "setting up @Name with an editor after this installation is done.\n"
  4120.  
  4121.   @AutoExecMsg = "Add 'CALL STARTNET.BAT' to @your AUTOEXEC.BAT."
  4122.   @ConfigMsg   = "See @BootDrive:\\CONFIG.NEW for CONFIG.SYS changes."
  4123.   @StartNetMsg = "Merge STARTNET.NEW with your STARTNET.BAT."
  4124.   @If (@InstallWindows)
  4125.     @SystemIniMsg  = "See @SystemIni for suggested SYSTEM.INI settings."
  4126.     @WinIniMsg     = "See @WinIni for suggested WIN.INI settings."
  4127.     @If (@ToHard)
  4128.       @ProgmanIniMsg = "Run MKWGROUP.EXE from Windows to set up a @Name group."
  4129.     @Else
  4130.       @ProgmanIniMsg = "Use Windows Program Manager to set up a @Name group."
  4131.     @EndIf
  4132.   @EndIf
  4133. @EndIf
  4134.  
  4135. @Display
  4136.  @Cls @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  4137.     @s9
  4138.  @Underline40@Underline20@If (!@RunWindows)@!@Underline10@!@EndIf
  4139.  @s8 @Name startup batch file -- @StrConvert(@StartPath,"ANSI") --
  4140.  will be placed on @your @s10.  This will make @Name run
  4141.  automatically @s2.
  4142. @If (!@ToFloppy)
  4143.  @s5
  4144.  @s3
  4145.      @AutoExecMsg
  4146.      @ConfigMsg
  4147.      @StartNetMsg
  4148.      @SystemIniMsg
  4149.      @WinIniMsg
  4150.      @ProgmanIniMsg
  4151.      @ProtocolIniMsg
  4152. @EndIf @Underline40@Underline20@If (!@RunWindows)@!@Underline10@!@EndIf
  4153.  @If (@RunWindows)@!Please @s6 to continue... @EndIf @FlushKeyboard() @Pause
  4154. @EndDisplay
  4155.  
  4156.  
  4157. END_CONFIG:
  4158. @PleaseWait()
  4159.  
  4160.  
  4161. @BackgroundMode(3,@Red,@Blue)
  4162.  
  4163. @s1 = ""
  4164. @s2 = ""
  4165. @s3 = ""
  4166. @s4 = ""
  4167. @s5 = ""
  4168. @s6 = ""
  4169.  
  4170. @If (@RunWindows) @s1 = " shut down Windows and" @EndIf
  4171.  
  4172. @If (!@InstallWindows) @Goto SKIP_INI @EndIf
  4173.  
  4174. @s2 = "@GetINI("LANtastic","Network_IRQ",@SystemIni)"
  4175. @If ("@s2" == "") @s2 = "15" @EndIf
  4176.  
  4177. @x1 = "@GetINI("windows","load",@WinIni)"
  4178. @x1 = @StrConvert(@StrTrim("@x1"),"uc")
  4179. @x2 = "WNET"
  4180. @s3 = ""
  4181. @If (@Strlen(@x1) <= 0) @Goto SCAN_DONE @EndIf
  4182.  
  4183. @i = 0
  4184. SCAN_WNET:
  4185. @x3 = @StrToken(@x1,@i)
  4186. @If (@Strlen(@x3) <= 0) @Goto SCAN_DONE @EndIf
  4187.  
  4188. @If (@StrFind(@x3,@x2) == -1)
  4189.   @If (("@s3" == "") || ("@x3" == "")) @x4 = "" @Else @x4 = " " @EndIf
  4190.   @s3 = "@s3@!@x4@!@x3"
  4191. @EndIf
  4192. @i = (@i + 1)
  4193. @Goto SCAN_WNET
  4194.  
  4195. SCAN_DONE:
  4196. @If ("@s3" != "") @s3 = "@s3 " @EndIf
  4197.  
  4198. @x1 = "@GetINI("windows","run",@WinIni)"
  4199. @x1 = @StrConvert(@StrTrim("@x1"),"uc")
  4200. @x2 = "MKWGROUP"
  4201. @s4 = ""
  4202. @If (@Strlen(@x1) <= 0) @Goto SVR_SCAN_DONE @EndIf
  4203.  
  4204. @i = 0
  4205. SCAN_SVR:
  4206. @x3 = @StrToken(@x1,@i)
  4207. @If (@Strlen(@x3) <= 0) @Goto SVR_SCAN_DONE @EndIf
  4208.  
  4209. @If (@StrFind(@x3,@x2) == -1)
  4210.   @If (("@s4" == "") || ("@x3" == "")) @x4 = "" @Else @x4 = " " @EndIf
  4211.   @s4 = "@s4@!@x4@!@x3"
  4212. @EndIf
  4213. @i = (@i + 1)
  4214. @Goto SCAN_SVR
  4215.  
  4216. SVR_SCAN_DONE:
  4217. @If ("@s4" != "") @s4 = "@s4 " @EndIf
  4218. @s6 = "@InstallPath\\@x2.EXE"
  4219. @s5 = "@InstallPath\\@x2.INF"
  4220.  
  4221. SKIP_INI:
  4222.  
  4223. @x1 = "@SharePath\\SYSTEM.NET\\ACCOUNTS"
  4224. @If (@NewInstall)
  4225.   @InitControlArg = "@InitControlArg -x@Logins"
  4226.   @If (@Exists(@x1))
  4227.     @If (@FileSize(@x1) < 128)
  4228.       @Delete(@x1,"os")
  4229.     @EndIf
  4230.   @Else
  4231.     @InitControlArg = "@InitControlArg -A"
  4232.   @EndIf
  4233. @Else
  4234.   @If (@Exists(@x1))
  4235.     @If (@FileSize(@x1) < 128)
  4236.       @Delete(@x1,"os")
  4237.     @EndIf
  4238.   @EndIf
  4239. @EndIf
  4240. @If (@InstallWindows)
  4241.   @InitControlArg = "@InitControlArg -lkNW"
  4242. @EndIf
  4243. @If (@MailServer)
  4244.   @InitControlArg = "@InitControlArg -mpAMAILPRG -mdAMAIL"
  4245. @EndIf
  4246. @If (@InstallServices)
  4247.   @InitControlArg = "@InitControlArg -inINSTALL"
  4248. @EndIf
  4249. @If (@DebugMode)
  4250.   @InitControlArg = "@InitControlArg -D"
  4251. @EndIf
  4252.  
  4253. @s7 = "@InstallPath\\@InitControlProg"
  4254. @s8 = "@AnsiInstallPath\\@InitControlProg -n@ComputerName -c@AnsiEnvLanDir -p@AnsiExecutePath @InitControlArg"
  4255.  
  4256. @SetPath     = "@InstallPath\\SETNET.BAT"
  4257. @SamplePath  = "@InstallPath\\SAMPLE.INF"
  4258. @ConnectPath = "@ExecutePath\\CONNECT.BAT"
  4259.  
  4260. @AdapterProgX = @StrToken(@AdapterProg,1,"~")
  4261. @AdapterProg  = @StrToken(@AdapterProg,0,"~")
  4262.  
  4263. @AdapterArgs  = @StrToken(@AdapterProg,1,"`")
  4264. @AdapterArgsX = @StrToken(@AdapterProgX,1,"`")
  4265.  
  4266. @If (@KeepInstall) @action = "upgrade" @Else @action = "installation" @EndIf
  4267.  
  4268. FINISH_FILES:
  4269.  
  4270. @If (@NoFilesMode) @Goto ENDFILES @EndIf
  4271.  
  4272. @If (@HighDensity)
  4273. @DefineDisk
  4274.   @Label = "Disk 1 of 4"
  4275.  
  4276.   @File INSTALL.EXE  @Size 436000 @Out LANSETUP.EXE @Option 110
  4277.   @File INSTALL.DAT  @Size 184000 @Out *.* @Option 110
  4278.   @File README.DOC   @Size  22000 @Out *.* @Option 110
  4279.   @File README2.DOC  @Size  21000 @Out *.* @Option 160
  4280.  
  4281.   @File INSTALL.EXE  @Size 436000 @Out INSTALL\*.* @Option 112
  4282.   @File INSTALL.DAT  @Size 184000 @Out INSTALL\*.* @Option 112
  4283.   @File README.DOC   @Size  22000 @Out INSTALL\*.* @Option 112
  4284.   @File README2.DOC  @Size  21000 @Out INSTALL\*.* @Option 112
  4285.   @File DISK.ID      @Size     50 @Out INSTALL\*.* @Option 112
  4286.   @File NOS.001      @Size 540000 @Out INSTALL\*.* @Option 112
  4287.  
  4288.   @BeginLib NOS.001
  4289.     @File REDIR.EXE    @Size  94100 @Out *.* @Option 113
  4290.     @File SERVER.EXE   @Size 169100 @Out *.* @Option 111
  4291.     @File RPS.EXE      @Size  22300 @Out *.* @Option 110
  4292.     @File UPS.EXE      @Size   7000 @Out *.* @Option 110
  4293.     @File LANPUP.EXE   @Size  12000 @Out *.* @Option 113
  4294.     @File NET.EXE      @Size  20200 @Out *.* @Option 113
  4295.     @File NET.MNU      @Size  82000 @Out *.* @Option 113
  4296.     @File NET.HLP      @Size  87400 @Out *.* @Option 113
  4297.     @File NET_MGR.EXE  @Size  19000 @Out *.* @Option 111
  4298.     @File NET_MGR.MNU  @Size 132000 @Out *.* @Option 111
  4299.     @File NET_MGR.HLP  @Size  99000 @Out *.* @Option 111
  4300.     @File ALONE.EXE    @Size  33700 @Out *.* @Option 111
  4301.     @File ALONE.HLP    @Size  10000 @Out *.* @Option 111
  4302.     @File BOOT.IMD     @Size   1000 @Out *.* @Option 111
  4303.     @File IBMBOOT.TYP  @Size   1000 @Out *.* @Option 111
  4304.     @File FFRPL.TYP    @Size   1000 @Out *.* @Option 111
  4305.     @File FFRPL.EXE    @Size   7600 @Out *.* @Option 111
  4306.     @File FFRAMRPL.BSD @Size   1000 @Out *.* @Option 111
  4307.     @File FFRAMRPL.BST @Size   2000 @Out *.* @Option 111
  4308.     @File MODEM.CFG    @Size  29000 @Out *.* @Option 110
  4309.     @File AILANBIO.EXE @Size  22000 @Out *.* @Option 113
  4310.     @File NBSETUP.EXE  @Size   5400 @Out *.* @Option 110
  4311.     @File LANCACHE.EXE @Size  19000 @Out *.* @Option 110
  4312.     @File LANCHECK.EXE @Size  30200 @Out *.* @Option 110
  4313.     @File LANCHECK.HLP @Size   9700 @Out *.* @Option 110
  4314.     @File INITCTL.EXE  @Size  35000 @Out *.* @Option 111
  4315.     @File LED.EXE      @Size  70000 @Out *.* @Option 110
  4316.     @File LED.HLP      @Size  17000 @Out *.* @Option 110
  4317.     @File LED.DOS      @Size  48500 @Out *.* @Option 110
  4318.   @EndLib
  4319. @EndDisk
  4320.  
  4321. @DefineDisk
  4322.   @Label = "Disk 2 of 4"
  4323.  
  4324.   @File NOS.002      @Size 1215000 @Out INSTALL\*.* @Option 112
  4325.  
  4326.   @BeginLib NOS.002
  4327.     @File WNET.EXE     @Size 400000 @Out *.* @Option 120
  4328.     @File WNET.HLP     @Size 200000 @Out *.* @Option 120
  4329.     @File WNET_MGR.EXE @Size 428000 @Out *.* @Option 121
  4330.     @File WNET_MGR.HLP @Size 353000 @Out *.* @Option 121
  4331.     @File WMGRCTRL.EXE @Size 112000 @Out *.* @Option 121
  4332.     @File WSVRSPD.EXE  @Size   8000 @Out *.* @Option 121
  4333.     @File WPRSPD.EXE   @Size   8500 @Out *.* @Option 121
  4334.     @File LANTASTI.386 @Size  10400 @Out *.* @Option 120
  4335.     @File LANTNET.DRV  @Size  19800 @Out *.* @Option 120
  4336.     @File ASBCVT.DLL   @Size  15000 @Out *.* @Option 120
  4337.     @File ASGLIB.DLL   @Size  17100 @Out *.* @Option 120
  4338.     @File CTL3D.DLL    @Size  20300 @Out *.* @Option 120
  4339.     @File LPICALLW.DLL @Size  26000 @Out *.* @Option 122
  4340.     @File LFFMEXT.DLL  @Size  10000 @Out *.* @Option 120
  4341.     @File LVMDLL.DLL   @Size  11300 @Out *.* @Option 120
  4342.     @File SRVRMOD.DLL  @Size  66100 @Out *.* @Option 121
  4343.     @File WINUTIL.DLL  @Size  24100 @Out *.* @Option 120
  4344.     @File MKWGROUP.EXE @Size  18000 @Out *.* @Option 120
  4345.     @File INITCTLW.EXE @Size  36000 @Out *.* @Option 121
  4346.     @File DDEMACRO.DOC @Size   2500 @Out *.* @Option 120
  4347.     @File DDEMACRO.XLM @Size   3100 @Out *.* @Option 120
  4348.     @File INSTALL.ICO  @Size    800 @Out *.* @Option 120
  4349.     @File NRSETUP.EXE  @Size 34600 @Out *.*  @Option 131
  4350.     @File NRSETUP.HLP  @Size 10700 @Out *.*  @Option 131
  4351.     @File NRMOVE.EXE   @Size  3900 @Out *.*  @Option 131
  4352.     @File NR.EXE       @Size 11700 @Out *.*  @Option 131
  4353.     @File NR.EXE       @Size 11700 @Out NODERUN.EXE  @Option 131
  4354.     @File NE3.EXE      @Size  8700 @Out *.*  @Option 132
  4355.     @File AE2.EXE      @Size 11000 @Out *.*  @Option 133
  4356.     @File AEX.EXE      @Size 11000 @Out *.*  @Option 134
  4357.     @File CSPPORT.EXE  @Size 14500 @Out *.*  @Option 135
  4358.     @File LANBIOS.EXE  @Size 19600 @Out *.*  @Option 137
  4359.     @File LANBIOS2.EXE @Size 21100 @Out *.*  @Option 137
  4360.     @File LANBIOS3.EXE @Size 25700 @Out *.*  @Option 137
  4361.     @File MPORT.EXE    @Size 11000 @Out *.*  @Option 136
  4362.     @File LDU-MGR.EXE  @Size 38000 @Out *.*  @Option 136
  4363.     @File LDU-MGR.HLP  @Size 19000 @Out *.*  @Option 136
  4364.     @File 3C503MM.EXE  @Size  9100 @Out *.*  @Option 148
  4365.     @File 3C503MM.DOC  @Size 13500 @Out *.*  @Option 148
  4366.     @File 3COM507.EXE  @Size  9300 @Out *.*  @Option 149
  4367.     @File 3COM507.DOC  @Size 13000 @Out *.*  @Option 149
  4368.     @File 3COM523.EXE  @Size  9200 @Out *.*  @Option 150
  4369.     @File 3COM523.DOC  @Size 12900 @Out *.*  @Option 150
  4370.     @File ARCNET.EXE   @Size  8000 @Out *.*  @Option 151
  4371.     @File ARCNET.DOC   @Size 15700 @Out *.*  @Option 151
  4372.     @File NEX000.EXE   @Size  9900 @Out *.*  @Option 152
  4373.     @File NEX000.DOC   @Size 18700 @Out *.*  @Option 152
  4374.     @File PATCC.COM    @Size  9200 @Out *.*  @Option 153
  4375.     @File PATCC.DOC    @Size 12800 @Out *.*  @Option 153
  4376.     @File PE.EXE       @Size 16600 @Out *.*  @Option 154
  4377.     @File PE.DOC       @Size 14400 @Out *.*  @Option 154
  4378.     @File SMCARC.EXE   @Size  8100 @Out *.*  @Option 155
  4379.     @File SMCARC.DOC   @Size 15400 @Out *.*  @Option 155
  4380.     @File TCARC.EXE    @Size  8000 @Out *.*  @Option 156
  4381.     @File TCARC.DOC    @Size 13900 @Out *.*  @Option 156
  4382.     @File TLINK.EXE    @Size  8000 @Out *.*  @Option 157
  4383.     @File TLINK.DOC    @Size 11000 @Out *.*  @Option 157
  4384.     @File DRVR8530.COM @Size  5100 @Out *.*  @Option 157
  4385.     @File WD8003.EXE   @Size  9800 @Out *.*  @Option 158
  4386.     @File WD8003.DOC   @Size 18100 @Out *.*  @Option 158
  4387.  
  4388.     @File AI-NDIS.EXE  @Size   9600 @Out *.* @Option 140
  4389.     @File PROTMAN.DOS  @Size  13400 @Out *.* @Option 140
  4390.     @File PROTMAN.EXE  @Size  14100 @Out *.* @Option 140
  4391.     @File NETBIND.COM  @Size   8000 @Out *.* @Option 140
  4392.     @File TOKROUTE.EXE @Size   5900 @Out *.* @Option 140
  4393.     @File AEXNDIS.DOS  @Size   6400 @Out *.* @Option 141
  4394.     @File AEXNDIS.NIF  @Size   1520 @Out *.* @Option 141
  4395.     @File PROTOCOL.INI @Size  1600 @Out *.* @Option 142
  4396.     @File !A-I.TXT     @Size 10700 @Out ARTIDOCS\*.* @Option 110
  4397.     @File !ABOUT.TXT   @Size  1400 @Out ARTIDOCS\*.* @Option 110
  4398.     @File !AILANBO.TXT @Size 10200 @Out ARTIDOCS\*.* @Option 110
  4399.     @File !AINDIS.TXT  @Size  1900 @Out ARTIDOCS\*.* @Option 110
  4400.     @File !ALONE.TXT   @Size  1300 @Out ARTIDOCS\*.* @Option 110
  4401.     @File !CTRL.TXT    @Size 14600 @Out ARTIDOCS\*.* @Option 110
  4402.     @File !DOSAPP.TXT  @Size 12900 @Out ARTIDOCS\*.* @Option 110
  4403.     @File !INDRCT.TXT  @Size  5300 @Out ARTIDOCS\*.* @Option 110
  4404.     @File !IPX.TXT     @Size  2600 @Out ARTIDOCS\*.* @Option 110
  4405.     @File !J-Q.TXT     @Size 21700 @Out ARTIDOCS\*.* @Option 110
  4406.     @File !LANCHE.TXT  @Size  9400 @Out ARTIDOCS\*.* @Option 110
  4407.     @File !LANPUP.TXT  @Size  1000 @Out ARTIDOCS\*.* @Option 110
  4408.     @File !MGRCOM.TXT  @Size  7600 @Out ARTIDOCS\*.* @Option 110
  4409.     @File !MGRSWCH.TXT @Size  1200 @Out ARTIDOCS\*.* @Option 110
  4410.     @File !MISCNET.TXT @Size  7100 @Out ARTIDOCS\*.* @Option 110
  4411.     @File !MULTAD.TXT  @Size  3600 @Out ARTIDOCS\*.* @Option 110
  4412.     @File !NBSETUP.TXT @Size  3500 @Out ARTIDOCS\*.* @Option 110
  4413.     @File !NBSWCH.TXT  @Size  1800 @Out ARTIDOCS\*.* @Option 110
  4414.     @File !NDISWIT.TXT @Size  7100 @Out ARTIDOCS\*.* @Option 110
  4415.     @File !NETMGR.TXT  @Size   600 @Out ARTIDOCS\*.* @Option 110
  4416.     @File !OS2DOS.TXT  @Size  2200 @Out ARTIDOCS\*.* @Option 110
  4417.     @File !PALACL.TXT  @Size  2500 @Out ARTIDOCS\*.* @Option 110
  4418.     @File !R-Z.TXT     @Size 18000 @Out ARTIDOCS\*.* @Option 110
  4419.     @File !REDIR.TXT   @Size  5200 @Out ARTIDOCS\*.* @Option 110
  4420.     @File !RPS.TXT     @Size  7300 @Out ARTIDOCS\*.* @Option 110
  4421.     @File !SAMPLE.TXT  @Size  2400 @Out ARTIDOCS\*.* @Option 110
  4422.     @File !SERVER.TXT  @Size 17000 @Out ARTIDOCS\*.* @Option 110
  4423.     @File !SMBNCP.TXT  @Size  5000 @Out ARTIDOCS\*.* @Option 110
  4424.     @File !SWCHOVR.TXT @Size  5700 @Out ARTIDOCS\*.* @Option 110
  4425.     @File !SYNTAX.TXT  @Size  2400 @Out ARTIDOCS\*.* @Option 110
  4426.     @File !TCHSUP.TXT  @Size  5400 @Out ARTIDOCS\*.* @Option 110
  4427.     @File !TOKROUT.TXT @Size  3900 @Out ARTIDOCS\*.* @Option 110
  4428.     @File !TROUBLE.TXT @Size  4700 @Out ARTIDOCS\*.* @Option 110
  4429.     @File !UPS.TXT     @Size  4900 @Out ARTIDOCS\*.* @Option 110
  4430.     @File ARTIDOCS.1ST @Size  1100 @Out ARTIDOCS\*.* @Option 110
  4431.     @File ARTIDOCS.EXE @Size 14320 @Out ARTIDOCS\*.* @Option 110
  4432.     @File ARTIDOCS.LPT @Size   640 @Out ARTIDOCS\*.* @Option 110
  4433.     @File ARTIDOCS.MNU @Size   900 @Out ARTIDOCS\*.* @Option 110
  4434.     @File NDIS.OLM     @Size   600 @Out ARTIDOCS\*.* @Option 110
  4435.     @File NET.OLM      @Size   500 @Out ARTIDOCS\*.* @Option 110
  4436.     @File NETMGR.OLM   @Size   400 @Out ARTIDOCS\*.* @Option 110
  4437.     @File SWITCHES.OLM @Size  1100 @Out ARTIDOCS\*.* @Option 110
  4438.     @File AGENT.INI    @Size    200 @Out NW\*.* @Option 120
  4439.     @File ENV.INI      @Size    300 @Out NW\*.* @Option 120
  4440.     @File LINKBOOK.EXE @Size 247000 @Out NW\*.* @Option 120
  4441.     @File LINKBOOK.HLP @Size  25000 @Out NW\*.* @Option 120
  4442.     @File NMF.EXE      @Size 123000 @Out NW\*.* @Option 120
  4443.     @File NWAGT.DLL    @Size  13700 @Out NW\*.* @Option 120
  4444.     @File NWAPI.DLL    @Size  11200 @Out NW\*.* @Option 120
  4445.     @File NWLIB.DLL    @Size   3300 @Out NW\*.* @Option 120
  4446.     @File NWNB30.DLL   @Size   3400 @Out NW\*.* @Option 120
  4447.     @File INFILT.DLL   @Size   4200 @Out NW\ENV\ARTISOFT\NWDDE\*.* @Option 120
  4448.     @File OUTFILT.DLL  @Size   4100 @Out NW\ENV\ARTISOFT\NWDDE\*.* @Option 120
  4449.     @File METHOD.DLL   @Size  15000 @Out NW\ENV\ARTISOFT\NWDDE\*.* @Option 120
  4450.   @EndLib
  4451. @EndDisk
  4452.  
  4453. @DefineDisk
  4454.   @Label = "Disk 3 of 4"
  4455.  
  4456.   @File NOS.003      @Size 1030000 @Out INSTALL\*.* @Option 112
  4457.  
  4458.   @BeginLib NOS.003
  4459.     @If (@ToHard && !@ExtractMode)
  4460.      @If (@InstallWindows)
  4461.       @File ARTMAIL.INI  @Size    700 @Out @WindowsDrive:@WindowsDir\*.* @Option 161
  4462.      @Else
  4463.       @File ARTMAIL.INI  @Size    700 @Out AMAILPRG\*.* @Option 161
  4464.      @EndIf
  4465.     @Else
  4466.      @File ARTMAIL.INI  @Size    700 @Out WINDOWS\*.* @Option 161
  4467.     @EndIf
  4468.  
  4469.     @If (@ToHard && @InstallWindows && !@ExtractMode)
  4470.      @File FAXSPOOL.EXE @Size  16700 @Out @WindowsDrive:@WindowsDir\*.* @Option 162
  4471.      @File ARTFAX.DRV   @Size   8100 @Out @WindowsDrive:@WindowsDir\SYSTEM\*.* @Option 162
  4472.      @File MSGTRANS.DLL @Size   4200 @Out @WindowsDrive:@WindowsDir\SYSTEM\*.* @Option 162
  4473.      @File UNIDRV.DLL   @Size 129000 @Out @WindowsDrive:@WindowsDir\SYSTEM\*.* @Option 162
  4474.      @File UNIDRV.HLP   @Size  45200 @Out @WindowsDrive:@WindowsDir\SYSTEM\*.* @Option 162
  4475.     @Else
  4476.      @File FAXSPOOL.EXE @Size  16700 @Out WINDOWS\*.* @Option 162
  4477.      @File ARTFAX.DRV   @Size   8100 @Out WINDOWS\SYSTEM\*.* @Option 162
  4478.      @File MSGTRANS.DLL @Size   4200 @Out WINDOWS\SYSTEM\*.* @Option 162
  4479.      @File UNIDRV.DLL   @Size 129000 @Out WINDOWS\SYSTEM\*.* @Option 162
  4480.      @File UNIDRV.HLP   @Size  45200 @Out WINDOWS\SYSTEM\*.* @Option 162
  4481.     @EndIf
  4482.     @File OBJMAIN.60   @Size  86500 @Out AMAILPRG\OBJMAIN.DLL @Option 160
  4483.     @File ACCTOBJ.DLL  @Size  24200 @Out AMAILPRG\*.* @Option 160
  4484.     @File ACCUSOFT.DLL @Size 180000 @Out AMAILPRG\*.* @Option 160
  4485.     @File ARTIOBJ.DLL  @Size  15900 @Out AMAILPRG\*.* @Option 160
  4486.     @File ATED.DLL     @Size 283000 @Out AMAILPRG\*.* @Option 160
  4487.     @File ATEDMEM.DLL  @Size  13900 @Out AMAILPRG\*.* @Option 160
  4488.     @File ATEDSUP.DLL  @Size  23000 @Out AMAILPRG\*.* @Option 160
  4489.     @File BALLOON.DLL  @Size   9000 @Out AMAILPRG\*.* @Option 160
  4490.     @File DPMIFILE.DLL @Size   7400 @Out AMAILPRG\*.* @Option 160
  4491.     @File ENGINE.DLL   @Size 193000 @Out AMAILPRG\*.* @Option 160
  4492.     @File FAXADMIN.DLL @Size   6400 @Out AMAILPRG\*.* @Option 160
  4493.     @File FAXOBJ.DLL   @Size  15700 @Out AMAILPRG\*.* @Option 160
  4494.     @File FAXVIEW.DLL  @Size  16100 @Out AMAILPRG\*.* @Option 160
  4495.     @File FLDOBJ.DLL   @Size  74000 @Out AMAILPRG\*.* @Option 160
  4496.     @File FLTOBJ.DLL   @Size  41400 @Out AMAILPRG\*.* @Option 160
  4497.     @File ICONLIB.DLL  @Size 104400 @Out AMAILPRG\*.* @Option 160
  4498.     @File LANOBJ.DLL   @Size  15500 @Out AMAILPRG\*.* @Option 160
  4499.     @File MCIOBJ.DLL   @Size  32000 @Out AMAILPRG\*.* @Option 160
  4500.     @File MHSOBJ.DLL   @Size  15000 @Out AMAILPRG\*.* @Option 160
  4501.     @File MODEMINI.DLL @Size   9000 @Out AMAILPRG\*.* @Option 160
  4502.     @File MSGOBJ.DLL   @Size  87000 @Out AMAILPRG\*.* @Option 160
  4503.     @File MSGTRANS.DLL @Size   4700 @Out AMAILPRG\*.* @Option 160
  4504.     @File MTAOBJ.DLL   @Size  22700 @Out AMAILPRG\*.* @Option 160
  4505.     @File MUSCROLL.DLL @Size  47600 @Out AMAILPRG\*.* @Option 160
  4506.     @File OIIREG.DLL   @Size  13400 @Out AMAILPRG\*.* @Option 160
  4507.     @File PAGEROBJ.DLL @Size  16000 @Out AMAILPRG\*.* @Option 160
  4508.     @File PGADMIN.DLL  @Size   7100 @Out AMAILPRG\*.* @Option 160
  4509.     @File POADMIN.DLL  @Size   6700 @Out AMAILPRG\*.* @Option 160
  4510.     @File PRINTOBJ.DLL @Size   5800 @Out AMAILPRG\*.* @Option 160
  4511.     @File QADMIN.DLL   @Size   5200 @Out AMAILPRG\*.* @Option 160
  4512.     @File QEMADMIN.DLL @Size   5300 @Out AMAILPRG\*.* @Option 160
  4513.     @File QOBJ.DLL     @Size  15100 @Out AMAILPRG\*.* @Option 160
  4514.     @File SERVOBJ.DLL  @Size   6200 @Out AMAILPRG\*.* @Option 160
  4515.     @File TXTADMIN.DLL @Size   6000 @Out AMAILPRG\*.* @Option 160
  4516.     @File TXTOBJ.DLL   @Size  16300 @Out AMAILPRG\*.* @Option 160
  4517.     @File AMEXTRA.EXE  @Size   8300 @Out AMAILPRG\*.* @Option 160
  4518.     @File WAMAIL.EXE   @Size  65100 @Out AMAILPRG\*.* @Option 160
  4519.     @File WAMAIL.HLP   @Size 549000 @Out AMAILPRG\*.* @Option 160
  4520.     @File COMMLIB.DLL  @Size  45500 @Out AMAILPRG\*.* @Option 170
  4521.     @File COMMREAL.DLL @Size   1600 @Out AMAILPRG\*.* @Option 170
  4522.     @File MTAEXECL.DLL @Size  17800 @Out AMAILPRG\*.* @Option 170
  4523.     @File MTAFAXC.DLL  @Size  27800 @Out AMAILPRG\*.* @Option 170
  4524.     @File MTAPAGE.DLL  @Size  10200 @Out AMAILPRG\*.* @Option 170
  4525.     @File MTAQ.DLL     @Size  24800 @Out AMAILPRG\*.* @Option 170
  4526.     @File MTAQMAIL.DLL @Size  26000 @Out AMAILPRG\*.* @Option 170
  4527.     @File MTASERV.DLL  @Size   7500 @Out AMAILPRG\*.* @Option 170
  4528.     @File MTATPAGE.DLL @Size  20400 @Out AMAILPRG\*.* @Option 170
  4529.     @File MTDLIB.DLL   @Size  14200 @Out AMAILPRG\*.* @Option 170
  4530.     @File MTAEXEC.EXE  @Size  11800 @Out AMAILPRG\*.* @Option 170
  4531.     @File RTM.EXE      @Size 109000 @Out AMAILPRG\*.* @Option 170
  4532.     @File WMTAEXEC.EXE @Size  19300 @Out AMAILPRG\*.* @Option 170
  4533.   @EndLib
  4534. @EndDisk
  4535.  
  4536. @DefineDisk
  4537.   @Label = "Disk 4 of 4"
  4538.  
  4539.   @File NOS.004      @Size 420000 @Out INSTALL\*.* @Option 112
  4540.  
  4541.   @BeginLib NOS.004
  4542.     @File IPXODI.COM   @Size  30100 @Out *.* @Option 180
  4543.     @File LSL.COM      @Size  18500 @Out *.* @Option 180
  4544.     @File NET.CFG      @Size    200 @Out *.* @Option 180
  4545.     @File NRODI.COM    @Size  21000 @Out *.* @Option 180
  4546.     @File ODINSUP.COM  @Size  33600 @Out *.* @Option 180
  4547.     @File IENS9231.DAT @Size 200000 @Out AMAILPRG\*.* @Option 160
  4548.     @File WASCHED.EXE  @Size 211000 @Out AMAILPRG\*.* @Option 160
  4549.     @File WASCHED.HLP  @Size 166000 @Out AMAILPRG\*.* @Option 160
  4550.     @File DPMI16BI.OVL @Size  60400 @Out AMAILPRG\*.* @Option 170
  4551.     @File SETNAME.PIF  @Size    600 @Out AMAILPRG\*.* @Option 170
  4552.     @File SETNAME.EXE  @Size  23200 @Out AMAILPRG\*.* @Option 170
  4553.     @File GAB1.CAH     @Size   1000 @Out AMAIL\*.* @Option 171
  4554.     @File GABART.DAT   @Size    900 @Out AMAIL\*.* @Option 171
  4555.     @File USRART.DAT   @Size   1500 @Out AMAIL\*.* @Option 171
  4556.     @File GACC.DB      @Size  16100 @Out AMAIL\*.* @Option 171
  4557.     @File GAPAGER.DB   @Size   4000 @Out AMAIL\*.* @Option 171
  4558.     @File GARTI.DB     @Size   7500 @Out AMAIL\*.* @Option 171
  4559.     @File GFAX.DB      @Size   4600 @Out AMAIL\*.* @Option 171
  4560.     @File GFILTER.DB   @Size  13400 @Out AMAIL\*.* @Option 171
  4561.     @File GMCI.DB      @Size  12200 @Out AMAIL\*.* @Option 171
  4562.     @File GMHS.DB      @Size   4200 @Out AMAIL\*.* @Option 171
  4563.     @File GMSDIR.DB    @Size 238000 @Out AMAIL\*.* @Option 171
  4564.     @File GMSG.DB      @Size   7500 @Out AMAIL\*.* @Option 171
  4565.     @File GMTA.DB      @Size  90000 @Out AMAIL\*.* @Option 171
  4566.     @File GPAGER.DB    @Size   3200 @Out AMAIL\*.* @Option 171
  4567.     @File GPORT.DB     @Size    700 @Out AMAIL\*.* @Option 171
  4568.     @File GQMAIL.DB    @Size   3400 @Out AMAIL\*.* @Option 171
  4569.     @File GQUEUE.DB    @Size  11100 @Out AMAIL\*.* @Option 171
  4570.     @File SERVER.INI   @Size    300 @Out AMAIL\*.* @Option 171
  4571.     @File 00000001.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4572.     @File 00000002.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4573.     @File 00000003.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4574.     @File 00000004.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4575.     @File 00000005.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4576.     @File 00000006.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4577.     @File 00000007.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4578.     @File 00000008.MSG @Size   1500 @Out AMAIL\*.* @Option 171
  4579.   @EndLib
  4580.  
  4581. @EndDisk
  4582.  
  4583. @ElseIf (@LowDensity)
  4584.  
  4585. @DefineDisk
  4586.   @Label = "Disk 1 of 4"
  4587.  
  4588.   @File INSTALL.EXE  @Size 206000 @Out LANSETUP.EXE @Option 110
  4589.   @File INSTALL.DAT  @Size 142000 @Out *.* @Option 110
  4590.  
  4591.   @BeginLib NOS360.001
  4592.   @EndLib
  4593. @EndDisk
  4594.  
  4595. @DefineDisk
  4596.   @Label = "Disk 2 of 4"
  4597.  
  4598.   @File README.DOC   @Size  16000 @Out *.* @Option 110
  4599.  
  4600.   @BeginLib NOS360.002
  4601.     @File REDIR.EXE    @Size  94100 @Out *.* @Option 113
  4602.     @File SERVER.EXE   @Size 169100 @Out *.* @Option 111
  4603.     @File RPS.EXE      @Size  22300 @Out *.* @Option 110
  4604.     @File LANPUP.EXE   @Size  12000 @Out *.* @Option 113
  4605.     @File NET.EXE      @Size  20200 @Out *.* @Option 113
  4606.     @File NET.MNU      @Size  82000 @Out *.* @Option 110
  4607.     @File NET.HLP      @Size  87400 @Out *.* @Option 113
  4608.     @File IPXODI.COM   @Size  30100 @Out *.* @Option 180
  4609.     @File LSL.COM      @Size  18500 @Out *.* @Option 180
  4610.     @File NET.CFG      @Size    100 @Out *.* @Option 180
  4611.     @File NRODI.COM    @Size  21000 @Out *.* @Option 180
  4612.     @File ODINSUP.COM  @Size  33600 @Out *.* @Option 180
  4613.   @EndLib
  4614. @EndDisk
  4615.  
  4616. @DefineDisk
  4617.   @Label = "Disk 3 of 4"
  4618.  
  4619.   @BeginLib NOS360.003
  4620.     @File NET_MGR.EXE  @Size  19000 @Out *.* @Option 111
  4621.     @File NET_MGR.MNU  @Size 132000 @Out *.* @Option 111
  4622.     @File NET_MGR.HLP  @Size  99000 @Out *.* @Option 111
  4623.     @File BOOT.IMD     @Size   1000 @Out *.* @Option 111
  4624.     @File IBMBOOT.TYP  @Size   1000 @Out *.* @Option 111
  4625.     @File FFRPL.TYP    @Size   1000 @Out *.* @Option 111
  4626.     @File FFRPL.EXE    @Size   7600 @Out *.* @Option 111
  4627.     @File FFRAMRPL.BSD @Size   1000 @Out *.* @Option 111
  4628.     @File FFRAMRPL.BST @Size   2000 @Out *.* @Option 111
  4629.     @File ALONE.EXE    @Size  33700 @Out *.* @Option 111
  4630.     @File ALONE.HLP    @Size  10000 @Out *.* @Option 111
  4631.     @File MODEM.CFG    @Size  29000 @Out *.* @Option 110
  4632.     @File AILANBIO.EXE @Size  22000 @Out *.* @Option 113
  4633.     @File NBSETUP.EXE  @Size   5400 @Out *.* @Option 110
  4634.     @File LANCACHE.EXE @Size  19000 @Out *.* @Option 110
  4635.     @File LANCHECK.EXE @Size  30200 @Out *.* @Option 110
  4636.     @File LANCHECK.HLP @Size   9700 @Out *.* @Option 110
  4637.     @File UPS.EXE      @Size   7000 @Out *.* @Option 110
  4638.     @File INITCTL.EXE  @Size  35000 @Out *.* @Option 111
  4639.     @File LED.EXE      @Size  70000 @Out *.* @Option 110
  4640.     @File LED.HLP      @Size  17000 @Out *.* @Option 110
  4641.     @File LED.DOS      @Size  48500 @Out *.* @Option 110
  4642.     @File NRSETUP.EXE  @Size  34600 @Out *.* @Option 131
  4643.     @File NRSETUP.HLP  @Size  10700 @Out *.* @Option 131
  4644.     @File NRMOVE.EXE   @Size   3900 @Out *.* @Option 131
  4645.     @File NR.EXE       @Size  11700 @Out *.* @Option 131
  4646.     @File NR.EXE       @Size  11700 @Out NODERUN.EXE @Option 131
  4647.     @File NE3.EXE      @Size   8700 @Out *.* @Option 132
  4648.     @File AE2.EXE      @Size  11100 @Out *.* @Option 133
  4649.     @File AEX.EXE      @Size  11000 @Out *.* @Option 134
  4650.     @File CSPPORT.EXE  @Size  14500 @Out *.* @Option 135
  4651.   @EndLib
  4652. @EndDisk
  4653.  
  4654. @DefineDisk
  4655.   @Label = "Disk 4 of 4"
  4656.  
  4657.   @BeginLib NOS360.004
  4658.     @File LANBIOS.EXE  @Size 19600 @Out *.*  @Option 137
  4659.     @File LANBIOS2.EXE @Size 21100 @Out *.*  @Option 137
  4660.     @File LANBIOS3.EXE @Size 25700 @Out *.*  @Option 137
  4661.     @File MPORT.EXE    @Size 11000 @Out *.*  @Option 136
  4662.     @File LDU-MGR.EXE  @Size 38000 @Out *.*  @Option 136
  4663.     @File LDU-MGR.HLP  @Size 19000 @Out *.*  @Option 136
  4664.     @File 3C503MM.EXE  @Size  9100 @Out *.*  @Option 148
  4665.     @File 3C503MM.DOC  @Size 13500 @Out *.*  @Option 148
  4666.     @File 3COM507.EXE  @Size  9300 @Out *.*  @Option 149
  4667.     @File 3COM507.DOC  @Size 13000 @Out *.*  @Option 149
  4668.     @File 3COM523.EXE  @Size  9200 @Out *.*  @Option 150
  4669.     @File 3COM523.DOC  @Size 12900 @Out *.*  @Option 150
  4670.     @File ARCNET.EXE   @Size  8000 @Out *.*  @Option 151
  4671.     @File ARCNET.DOC   @Size 15700 @Out *.*  @Option 151
  4672.     @File NEX000.EXE   @Size  9900 @Out *.*  @Option 152
  4673.     @File NEX000.DOC   @Size 18700 @Out *.*  @Option 152
  4674.     @File PATCC.COM    @Size  9200 @Out *.*  @Option 153
  4675.     @File PATCC.DOC    @Size 12800 @Out *.*  @Option 153
  4676.     @File PE.EXE       @Size 16600 @Out *.*  @Option 154
  4677.     @File PE.DOC       @Size 14400 @Out *.*  @Option 154
  4678.     @File SMCARC.EXE   @Size  8100 @Out *.*  @Option 155
  4679.     @File SMCARC.DOC   @Size 15400 @Out *.*  @Option 155
  4680.     @File TCARC.EXE    @Size  8000 @Out *.*  @Option 156
  4681.     @File TCARC.DOC    @Size 13900 @Out *.*  @Option 156
  4682.     @File TLINK.EXE    @Size  8000 @Out *.*  @Option 157
  4683.     @File TLINK.DOC    @Size 11000 @Out *.*  @Option 157
  4684.     @File DRVR8530.DOC @Size  5100 @Out *.*  @Option 157
  4685.     @File WD8003.EXE   @Size  9800 @Out *.*  @Option 158
  4686.     @File WD8003.DOC   @Size 18100 @Out *.*  @Option 158
  4687.     @File AI-NDIS.EXE  @Size  9600 @Out *.* @Option 140
  4688.     @File PROTMAN.DOS  @Size 13400 @Out *.* @Option 140
  4689.     @File PROTMAN.EXE  @Size 14100 @Out *.* @Option 140
  4690.     @File NETBIND.COM  @Size  8000 @Out *.* @Option 140
  4691.     @File TOKROUTE.EXE @Size  5900 @Out *.* @Option 140
  4692.     @File AEXNDIS.DOS  @Size  6400 @Out *.* @Option 141
  4693.     @File AEXNDIS.NIF  @Size  1520 @Out *.* @Option 141
  4694.     @File PROTOCOL.INI @Size  1600 @Out *.* @Option 142
  4695.     @File !A-I.TXT     @Size 10700 @Out ARTIDOCS\*.* @Option 110
  4696.     @File !ABOUT.TXT   @Size  1400 @Out ARTIDOCS\*.* @Option 110
  4697.     @File !AILANBO.TXT @Size 10200 @Out ARTIDOCS\*.* @Option 110
  4698.     @File !AINDIS.TXT  @Size  1900 @Out ARTIDOCS\*.* @Option 110
  4699.     @File !ALONE.TXT   @Size  1300 @Out ARTIDOCS\*.* @Option 110
  4700.     @File !CTRL.TXT    @Size 14600 @Out ARTIDOCS\*.* @Option 110
  4701.     @File !DOSAPP.TXT  @Size 12900 @Out ARTIDOCS\*.* @Option 110
  4702.     @File !INDRCT.TXT  @Size  5300 @Out ARTIDOCS\*.* @Option 110
  4703.     @File !IPX.TXT     @Size  2600 @Out ARTIDOCS\*.* @Option 110
  4704.     @File !J-Q.TXT     @Size 21700 @Out ARTIDOCS\*.* @Option 110
  4705.     @File !LANCHE.TXT  @Size  9400 @Out ARTIDOCS\*.* @Option 110
  4706.     @File !LANPUP.TXT  @Size  1000 @Out ARTIDOCS\*.* @Option 110
  4707.     @File !MGRCOM.TXT  @Size  7600 @Out ARTIDOCS\*.* @Option 110
  4708.     @File !MGRSWCH.TXT @Size  1200 @Out ARTIDOCS\*.* @Option 110
  4709.     @File !MISCNET.TXT @Size  7100 @Out ARTIDOCS\*.* @Option 110
  4710.     @File !MULTAD.TXT  @Size  3600 @Out ARTIDOCS\*.* @Option 110
  4711.     @File !NBSETUP.TXT @Size  3500 @Out ARTIDOCS\*.* @Option 110
  4712.     @File !NBSWCH.TXT  @Size  1800 @Out ARTIDOCS\*.* @Option 110
  4713.     @File !NDISWIT.TXT @Size  7100 @Out ARTIDOCS\*.* @Option 110
  4714.     @File !NETMGR.TXT  @Size   600 @Out ARTIDOCS\*.* @Option 110
  4715.     @File !OS2DOS.TXT  @Size  2200 @Out ARTIDOCS\*.* @Option 110
  4716.     @File !PALACL.TXT  @Size  2500 @Out ARTIDOCS\*.* @Option 110
  4717.     @File !R-Z.TXT     @Size 18000 @Out ARTIDOCS\*.* @Option 110
  4718.     @File !REDIR.TXT   @Size  5200 @Out ARTIDOCS\*.* @Option 110
  4719.     @File !RPS.TXT     @Size  7300 @Out ARTIDOCS\*.* @Option 110
  4720.     @File !SAMPLE.TXT  @Size  2400 @Out ARTIDOCS\*.* @Option 110
  4721.     @File !SERVER.TXT  @Size 17000 @Out ARTIDOCS\*.* @Option 110
  4722.     @File !SMBNCP.TXT  @Size  5000 @Out ARTIDOCS\*.* @Option 110
  4723.     @File !SWCHOVR.TXT @Size  5700 @Out ARTIDOCS\*.* @Option 110
  4724.     @File !SYNTAX.TXT  @Size  2400 @Out ARTIDOCS\*.* @Option 110
  4725.     @File !TCHSUP.TXT  @Size  5400 @Out ARTIDOCS\*.* @Option 110
  4726.     @File !TOKROUT.TXT @Size  3900 @Out ARTIDOCS\*.* @Option 110
  4727.     @File !TROUBLE.TXT @Size  6300 @Out ARTIDOCS\*.* @Option 110
  4728.     @File !UPS.TXT     @Size  4900 @Out ARTIDOCS\*.* @Option 110
  4729.     @File ARTIDOCS.1ST @Size  1100 @Out ARTIDOCS\*.* @Option 110
  4730.     @File ARTIDOCS.EXE @Size 14320 @Out ARTIDOCS\*.* @Option 110
  4731.     @File ARTIDOCS.LPT @Size   640 @Out ARTIDOCS\*.* @Option 110
  4732.     @File ARTIDOCS.MNU @Size   900 @Out ARTIDOCS\*.* @Option 110
  4733.     @File NDIS.OLM     @Size   600 @Out ARTIDOCS\*.* @Option 110
  4734.     @File NET.OLM      @Size   500 @Out ARTIDOCS\*.* @Option 110
  4735.     @File NETMGR.OLM   @Size   400 @Out ARTIDOCS\*.* @Option 110
  4736.     @File SWITCHES.OLM @Size  1100 @Out ARTIDOCS\*.* @Option 110
  4737.   @EndLib
  4738. @EndDisk
  4739.  
  4740. @EndIf
  4741.  
  4742. ENDFILES:
  4743.  
  4744.  
  4745. FINISH_BLOCK:
  4746.  
  4747. @LicensePath = @InstallPath
  4748. @If (@ExtractMode || @ToFloppy)
  4749.   @LicensePath = @ScriptPath
  4750. @Else
  4751.   @InstallProg = "LANSETUP.EXE"
  4752. @EndIf
  4753.  
  4754.  
  4755. @x1 = "@KillWindows("Artisoft~Lantastic","IP")"
  4756. @Time2 = @SystemDate
  4757.  
  4758. @If (@InstallMode || @ExtractMode)
  4759.   @If (@InstallServices)
  4760.     @FileAttr( "@InstallPath\\INSTALL\\*.*", "r-" )
  4761.   @EndIf
  4762.  
  4763.   @If (@MailEnabled && !@NetMail)
  4764.     @FileAttr( "@MailInstallPath\\*.*", "r-" )
  4765.   @EndIf
  4766.  
  4767.   @If (@InstallMode)
  4768.     @If (@ClearMailData)
  4769.       @Delete( "@MailInstallDataPath\\*.*", "OR" )
  4770.     @EndIf
  4771.   @EndIf
  4772. @EndIf
  4773.  
  4774. @Finish
  4775.  
  4776. @Goto DCHECK1
  4777. DCHECK:
  4778. @If (@False)
  4779. DCHECK1:
  4780. @EndIf
  4781.  
  4782. @If ( (@ExtractMode || @ToFloppy)
  4783.    && ((111 [= @Option) || (113 [= @Option)) )
  4784.   @If ((@Strlen("@LibName") > 0) && !@Exists("@LibName"))
  4785.     @Cls
  4786.     @MoveCStr(@DosHeadingRow,@DosHeadingCol,@DosHeadingColor,@DosHeadingText)
  4787.  
  4788.     Please replace the @Name installation
  4789.     diskette labeled  "Disk 1 of @NumDisks"  into Drive @ScriptDrive:
  4790.     @FlushKeyboard() @Pause
  4791.     @Goto DCHECK
  4792.   @EndIf
  4793. @EndIf
  4794.  
  4795. @PleaseWait("- Finishing up")
  4796. @If (!@RunWindows) @Cls Finishing up @EndIf
  4797.  
  4798. @If (@ExtractMode)
  4799.   @If (@InstallServices)
  4800.     @If (@FileAttr( "@InstallPath\\INSTALL\\*.*", "r+" )) @EndIf
  4801.   @EndIf
  4802.   @If (@MailEnabled)
  4803.     @If (@FileAttr( "@MailInstallPath\\*.DLL", "r+" )) @EndIf
  4804.     @If (@FileAttr( "@MailInstallPath\\*.EXE", "r+" )) @EndIf
  4805.   @EndIf
  4806.  
  4807.   @If (113 [= @Option)
  4808.     @If (@License("@InstallPath\\@RedirProg","@LicensePath\\@InstallProg") != 0)
  4809.       @Cls @If (@BackgroundMode(3,@Red,@Red)) @EndIf
  4810.  
  4811.       @Warning
  4812.       @Underline40
  4813.  
  4814.       Unable to license @your @RedirProg program.
  4815.       @FlushKeyboard() @Pause
  4816.       @ChDrive( @StartupDrive )
  4817.       @ChDir( "@StartupDir" )
  4818.       @Exit
  4819.     @EndIf
  4820.   @EndIf
  4821.   @If (111 [= @Option)
  4822.     @If (@License("@InstallPath\\@ServerProg","@LicensePath\\@InstallProg") != 0)
  4823.       @Cls @If (@BackgroundMode(3,@Red,@Red)) @EndIf
  4824.  
  4825.       @Warning
  4826.       @Underline40
  4827.  
  4828.       Unable to license @your @ServerProg program.
  4829.       @FlushKeyboard() @Pause
  4830.       @ChDrive( @StartupDrive )
  4831.       @ChDir( "@StartupDir" )
  4832.       @Exit
  4833.     @EndIf
  4834.   @EndIf
  4835.   @If (@BackgroundMode(3,@Green,@Black)) @EndIf
  4836.   @Cls @MoveCStr(@DosHeadingRow,(@DosHeadingCol1),@DosHeadingColor,@DosHeadingText)
  4837.  
  4838.   FILE  EXTRACTION  COMPLETE
  4839.   @Underline40
  4840.  
  4841.   @Name @Registered Version @Version files have
  4842.   been successfully extracted to @InstallPath.
  4843.   @FlushKeyboard() @Pause
  4844.   @ChDrive( @StartupDrive )
  4845.   @ChDir( "@StartupDir" )
  4846.   @Exit
  4847. @EndIf
  4848.  
  4849.  @If (@BackgroundMode(3,@Blue,@Black)) @EndIf
  4850.  
  4851.  @If (!@RunWindows) @Cls Finishing up. @EndIf
  4852.  @If (@InstallWindows)
  4853.     @If (@ToHard && !@SystemIniChanged)
  4854.       @Copy("@WindowsPath\\SYSTEM.INI",@SystemIni)
  4855.     @EndIf
  4856.     @If (@SetINI("boot.description","network.drv",
  4857.        "@NameWin Version @Version",@SystemIni)) @EndIf
  4858.     @If (@SetINI("boot","network.drv",
  4859.        "@AnsiExecutePath\\LANTNET.DRV",@SystemIni)) @EndIf
  4860.     @If (!@RunWindows) @Cls Finishing up.. @EndIf
  4861.     @If (@SetINI("386Enh","network",
  4862.        "*vnetbios,@ExecutePath\\LANTASTI.386",@SystemIni)) @EndIf
  4863.     @If (@SetINI("386Enh","NetAsynchFallback","TRUE", @SystemIni)) @EndIf
  4864.     @If (@SetINI("386Enh","NetAsynchTimeout", "5.0",  @SystemIni)) @EndIf
  4865.     @If (@SetINI("386Enh","NetHeapSize",      "64",   @SystemIni)) @EndIf
  4866.     @If (@SetINI("386Enh","PerVMfiles",       "0",    @SystemIni)) @EndIf
  4867.     @If (@SetINI("386Enh","UniqueDosPSP",     "TRUE", @SystemIni)) @EndIf
  4868.     @If (@SetINI("386Enh","PSPIncrement",     "32",   @SystemIni)) @EndIf
  4869.     @If (@Our2mb)
  4870.       @If (@SetINI("386Enh","EMMExclude","D800-DFFF", @SystemIni)) @EndIf
  4871.     @EndIf
  4872.     @If (@SetINI("LANtastic","Comment",
  4873.                  "Add 1 Network_IRQ per adapter, specify correct Irq values.",
  4874.                  @SystemIni)) @EndIf
  4875.     @If (@SetINI("LANtastic","Network_IRQ","@s2",@SystemIni)) @EndIf
  4876.  @EndIf
  4877.  
  4878.  @If (!@RunWindows) @Cls Finishing up... @EndIf
  4879.  @If (@InstallWindows)
  4880.     @If (@ToHard && !@WinIniChanged)
  4881.       @Copy("@WindowsPath\\WIN.INI",@WinIni)
  4882.     @EndIf
  4883.     @If (@SetINI("windows","load","@s3@!@ExecutePath\\WNET.EXE",@WinIni)) @EndIf
  4884.     @If (@Share)
  4885.       @If (@SetINI("windows","spooler","no",@WinIni)) @EndIf
  4886.       @If (@SetINI("windows","DosPrint","yes",@WinIni)) @EndIf
  4887.     @EndIf
  4888.     @If (@MailEnabled && @FaxEnabled)
  4889.       @If ("@GetINI("ports","FAX:",@WinIni)" == "")
  4890.         @If (@SetINI("ports","FAX:","",@WinIni)) @EndIf
  4891.       @EndIf
  4892.       @If (@SetINI("PrinterPorts","Artisoft FAX Print Driver","ARTFAX,FAX:,15,45",@WinIni)) @EndIf
  4893.       @If (@SetINI("devices","Artisoft FAX Print Driver","ARTFAX,FAX:",@WinIni)) @EndIf
  4894.     @EndIf
  4895.  @EndIf
  4896.  
  4897.  @If (!@RunWindows) @Cls Finishing up.... @EndIf
  4898.  @If (@InstallWindows && @ToHard)
  4899.     @If (@SetINI("AddOns","@Name for File Manager","@AnsiExecutePath\\LFFMEXT.DLL","WINFILE.INI")) @EndIf
  4900.  @EndIf
  4901.  
  4902.  @If (@InstallWindows)
  4903.    @If (!@RunWindows) @Cls Finishing up..... @EndIf
  4904.    @If (@FileAttr( "@s5", "r-" )) @EndIf
  4905.    @WRITE("@s5","wt", "[DDEInfo]\n")
  4906.    @WRITE("@s5","at", "Group=@Name\n")
  4907.    @WRITE("@s5","at", "Apps=9\n")
  4908.    @WRITE("@s5","at", "\n[DDEApps]\n")
  4909.    @WRITE("@s5","at", "App1=WNET.EXE\n")
  4910.    @If (@Share)
  4911.      @WRITE("@s5","at", "App2=WNET_MGR.EXE\n")
  4912.    @EndIf
  4913.    @WRITE("@s5","at", "App3=@InstallProg\n")
  4914.    @WRITE("@s5","at", "App4=NW\\LINKBOOK.EXE\n")
  4915.    @If (@Share)
  4916.      @WRITE("@s5","at", "App5=WPRSPD.EXE\n")
  4917.      @WRITE("@s5","at", "App6=WSVRSPD.EXE\n")
  4918.    @EndIf
  4919.    @If (!@RunWindows) @Cls Finishing up...... @EndIf
  4920.    @If (@MailEnabled)
  4921.      @If (@NetMail)
  4922.        @WRITE("@s5","at", "App7=@MailPath\\WASCHED.EXE\n")
  4923.        @WRITE("@s5","at", "App8=@MailPath\\WAMAIL.EXE\n")
  4924.      @Else
  4925.        @WRITE("@s5","at", "App7=AMAILPRG\\WASCHED.EXE\n")
  4926.        @WRITE("@s5","at", "App8=AMAILPRG\\WAMAIL.EXE\n")
  4927.      @EndIf
  4928.    @EndIf
  4929.    @If (@MailServer)
  4930.      @WRITE("@s5","at", "App9=AMAILPRG\\WMTAEXEC.EXE\n")
  4931.    @EndIf
  4932.    @WRITE("@s5","at", "\n[DDEAppTitles]\n")
  4933.    @WRITE("@s5","at", "App1=@Name@Reg Net Connections\n")
  4934.    @WRITE("@s5","at", "App2=@Name@Reg Network Manager\n")
  4935.    @WRITE("@s5","at", "App3=@Name@Reg Setup\n")
  4936.    @WRITE("@s5","at", "App4=Artisoft LinkBook\n")
  4937.    @WRITE("@s5","at", "App5=@Name@Reg Printer Speed\n")
  4938.    @WRITE("@s5","at", "App6=@Name@Reg Server Speed\n")
  4939.    @If (!@RunWindows) @Cls Finishing up....... @EndIf
  4940.    @If (@MailEnabled)
  4941.      @WRITE("@s5","at", "App7=Artisoft Exchange Scheduler\n")
  4942.      @WRITE("@s5","at", "App8=Artisoft Exchange Mail\n")
  4943.    @EndIf
  4944.    @If (@MailServer)
  4945.      @WRITE("@s5","at", "App9=Artisoft Exchange Post Office\n")
  4946.    @EndIf
  4947.    @WRITE("@s5","at", "\n[DDEAppDirectories]\n")
  4948.    @If (@MailEnabled)
  4949.      @WRITE("@s5","at", "App7=@AnsiMailTempPath\n")
  4950.      @WRITE("@s5","at", "App8=@AnsiMailTempPath\n")
  4951.    @EndIf
  4952.    @If (@MailServer)
  4953.      @WRITE("@s5","at", "App9=@AnsiMailTempPath\n")
  4954.    @EndIf
  4955.    @WRITE("@s5","at", "\n[DDEAppIcons]\n")
  4956.    @WRITE("@s5","at", "App3=INSTALL.ICO\n")
  4957.    @If (@ToHard)
  4958.      @If (@SetINI("windows","run","@s4@!@s6",@WinIni)) @EndIf
  4959.    @EndIf
  4960.    @If (@ToHard && !@Exists("@s6"))
  4961.      @Cls
  4962.      @Warning
  4963.      @Underline40
  4964.  
  4965.      The Windows Group Setup program
  4966.  
  4967.      ---- @s6 ----
  4968.  
  4969.      was not found, so the @Name group
  4970.      will NOT be set up.
  4971.      @FlushKeyboard() @Pause
  4972.      @Abort
  4973.    @EndIf
  4974.  @EndIf
  4975.  
  4976.  @If (@InstallServices)
  4977.    @If (@FileAttr( "@InstallPath\\INSTALL\\*.*", "r+" )) @EndIf
  4978.  @EndIf
  4979.  
  4980.  @If (!@RunWindows) @Cls Finishing up........ @EndIf
  4981.  @If (@MailEnabled)
  4982.    @If (!@NetMail)
  4983.      @If (@FileAttr( "@MailInstallPath\\*.DLL", "r+" )) @EndIf
  4984.      @If (@FileAttr( "@MailInstallPath\\*.EXE", "r+" )) @EndIf
  4985.    @EndIf
  4986.    @If (!@DirExists(@MailTempPath))
  4987.      @MkDir(@MailTempPath)
  4988.    @EndIf
  4989.  
  4990.    @If (@ToHard)
  4991.      @If (@InstallWindows)
  4992.        @If (@SetINI("E-MAIL","ExternalMail","ON","WNET.INI")) @EndIf
  4993.        @If (@SetINI("E-MAIL","CmdLine","@MailPath\\WAMAIL.EXE","WNET.INI")) @EndIf
  4994.      @EndIf
  4995.  
  4996.      @If (@SetINI("Windows","MainStore",@MailDataPath,@ArtmailIni)) @EndIf
  4997.      @If (@SetINI("Windows","LocalStore",@AnsiMailTempPath,@ArtmailIni)) @EndIf
  4998.      @If (@SetINI("Windows","GroupEntryDir",@MailPath,@ArtmailIni)) @EndIf
  4999.      @If (@SetINI("Main Dictionary","Dictionary","@MailPath\\IENS9231.DAT",@ArtmailIni)) @EndIf
  5000.  
  5001.      @If (!@RunWindows) @Cls Finishing up......... @EndIf
  5002.      @If (@MailServer)
  5003.        @If (@SetINI("Windows","MainStore",@MailDataPath,"@MailInstallDataPath\\SERVER.INI")) @EndIf
  5004.        @If (@SetINI("Windows","LocalStore",@AnsiMailTempPath,"@MailInstallDataPath\\SERVER.INI")) @EndIf
  5005.        @If (@SetINI("Windows","POName",@POname,@ArtmailIni)) @EndIf
  5006.        @If (@SyncMail)
  5007.          @MkDir("@SharePath\\SYSTEM.NET")
  5008.          @If (@FileAttr( "@s5", "r-" )) @EndIf
  5009.          @If (@FileAttr( "@SharePath\\SYSTEM.NET\\ACCTSYNC", "r-" )) @EndIf
  5010.          @WRITE("@SharePath\\SYSTEM.NET\\ACCTSYNC","wt", "@MailDirectDataPath\\TRANSFIL.DB \n")
  5011.        @ElseIf (@NewMailServer)
  5012.          @Delete( "@SharePath\\SYSTEM.NET\\ACCTSYNC","O" )
  5013.        @EndIf
  5014.      @EndIf
  5015.    @EndIf
  5016.  @EndIf
  5017.  
  5018.  @If (!@RunWindows) @Cls Finishing up.......... @EndIf
  5019.  @If (@NewMailServer)
  5020.    @If (@Exists("@MailInstallPath\\SETNAME.EXE"))
  5021.      @If (@RunWindows)
  5022.  
  5023.        @ChDrive( @OutDrive )
  5024.        @ChDir("@MailInstallPath")
  5025.        @If (@WINEXEC("SETNAME.PIF ARTISOFT @POname @SyncFlag @MailInstallDataPath @MailDataPath @MailTempPath",2)) @EndIf
  5026.        @Delay(2)
  5027.        @ChDrive( @StartupDrive )
  5028.        @ChDir( "@StartupDir" )
  5029.      @Else
  5030.        @If (@SPAWN("@MailInstallPath\\SETNAME.EXE ARTISOFT @POname @SyncFlag@!Q @MailInstallDataPath @MailDataPath @MailTempPath"))
  5031.          @Cls
  5032.          @Warning
  5033.          @Underline40
  5034.  
  5035.          Unable to name the Artisoft Exchange Port Office as "@POname".
  5036.  
  5037.          Please continue with the @Name install anyway.
  5038.          @FlushKeyboard() @Pause
  5039.        @EndIf
  5040.      @EndIf
  5041.    @Else
  5042.      @Cls @If (@BackgroundMode(3,@Red,@Red)) @EndIf
  5043.      @Warning
  5044.      @Underline40
  5045.  
  5046.      The "Set Post Office Name" program
  5047.  
  5048.      ---- @s7 ----
  5049.  
  5050.      was not found, so the post office was not named.
  5051.  
  5052.      Please continue with the @Name install anyway.
  5053.      @FlushKeyboard() @Pause
  5054.    @EndIf
  5055.  @EndIf
  5056.  
  5057.  @If (!@RunWindows) @Cls Finishing up........... @EndIf
  5058.  @If (@FileAttr( "@SamplePath", "r-" )) @EndIf
  5059.  @WRITE("@SamplePath","wt", ";* @SamplePath --- @Name INSTALL automated response file\n")
  5060.  @WRITE("@SamplePath","at", ";* ----- Run 'INSTALL /INF' or see documentation.\n")
  5061.  @If (@RunWindows)
  5062.    @WRITE("@SamplePath","at", ";* ----- (Using Windows INSTALL)\n")
  5063.  @Else
  5064.    @WRITE("@SamplePath","at", ";* ----- (Using DOS INSTALL)\n")
  5065.  @EndIf
  5066.  @WRITE("@SamplePath","at", "\n[@Name]\n")
  5067.  @WRITE("@SamplePath","at", "Mode=Fast\n")
  5068.  @WRITE("@SamplePath","at", "ComputerName=@ComputerName\n")
  5069.  @WRITE("@SamplePath","at", "InstallPath=@InstallPath\n")
  5070.  @If ("@InstallPath" != "@ExecutePath")
  5071.    @WRITE("@SamplePath","at", "ExecutePath=@ExecutePath\n")
  5072.  @EndIf
  5073.  @If (@InstallWindows)
  5074.    @WRITE("@SamplePath","at", "Windows=yes\n")
  5075.  @Else
  5076.    @WRITE("@SamplePath","at", "Windows=no\n")
  5077.  @EndIf
  5078.  @If (@Share)
  5079.    @WRITE("@SamplePath","at", "Share=yes\n")
  5080.  @Else
  5081.    @WRITE("@SamplePath","at", "Share=no\n")
  5082.  @EndIf
  5083.  @WRITE("@SamplePath","at", "Logouts=@Logouts\n")
  5084.  @WRITE("@SamplePath","at", "Logins=@Logins\n")
  5085.  @If (!@RunWindows) @Cls Finishing up............ @EndIf
  5086.  @If (@MailEnabled)
  5087.    @If (@MailServer)
  5088.      @WRITE("@SamplePath","at", "Mail=PO\n")
  5089.      @If (@SyncMail)
  5090.        @WRITE("@SamplePath","at", "SyncMail=yes\n")
  5091.      @Else
  5092.        @WRITE("@SamplePath","at", "SyncMail=no\n")
  5093.      @EndIf
  5094.    @ElseIf (@NetMail)
  5095.      @WRITE("@SamplePath","at", "Mail=Net\n")
  5096.    @Else
  5097.      @WRITE("@SamplePath","at", "Mail=Client\n")
  5098.    @EndIf
  5099.    @WRITE("@SamplePath","at", "POname=@POname\n")
  5100.  @EndIf
  5101.  @If (@NcpEnabled)
  5102.    @WRITE("@SamplePath","at", "Ncp=yes\n")
  5103.  @EndIf
  5104.  @If (@SmbEnabled)
  5105.    @WRITE("@SamplePath","at", "Smb=yes\n")
  5106.  @EndIf
  5107.  @If (@InstallServices)
  5108.    @WRITE("@SamplePath","at", "InstallServices=yes\n")
  5109.  @EndIf
  5110.  @If (@SetConnect)
  5111.    @WRITE("@SamplePath","at", "Connect=yes\n")
  5112.    @If ("@DriveLetter1" != "")
  5113.      @WRITE("@SamplePath","at", "Drive1=@DriveServer1,@DriveName1,@DriveLetter1\n")
  5114.    @EndIf
  5115.    @If ("@DriveLetter2" != "")
  5116.      @WRITE("@SamplePath","at", "Drive2=@DriveServer2,@DriveName2,@DriveLetter2\n")
  5117.    @EndIf
  5118.    @If ("@PrintPort1" != "")
  5119.      @WRITE("@SamplePath","at", "Printer1=@PrintServer1,@PrintName1,@PrintPort1\n")
  5120.    @EndIf
  5121.    @If ("@PrintPort2" != "")
  5122.      @WRITE("@SamplePath","at", "Printer2=@PrintServer2,@PrintName2,@PrintPort1\n")
  5123.    @EndIf
  5124.  @Else
  5125.    @WRITE("@SamplePath","at", "Connect=no\n")
  5126.  @EndIf
  5127.  @If (!@ChangeSystemFiles)
  5128.    @WRITE("@SamplePath","at", "ChangeSystemFiles=no\n")
  5129.  @EndIf
  5130.  
  5131.  @If (!@RunWindows) @Cls Finishing up............. @EndIf
  5132.  @If (@FileAttr( "@ParamPath", "r-" )) @EndIf
  5133.  @WRITE("@ParamPath","wt", ";@ParamFile - @Name switch settings\n")
  5134.  @WRITE("@ParamPath","at", "[AILANBIO]\n")
  5135.  @If (@Ncbs > 32)
  5136.    @WRITE("@ParamPath","at", "  MAX_NCBS=@Ncbs\n")
  5137.    @WRITE("@ParamPath","at", "  NCBS=@Ncbs\n")
  5138.  @EndIf
  5139.  @If (@Sessions > 32)
  5140.    @WRITE("@ParamPath","at", "  MAX_SESSIONS=@Sessions\n")
  5141.    @WRITE("@ParamPath","at", "  SESSIONS=@Sessions\n")
  5142.  @EndIf
  5143.  @If (@OurMport)
  5144.    @WRITE("@ParamPath","at", "  FORCE_ACK_MODE\n")
  5145.  @EndIF
  5146.  @WRITE("@ParamPath","at", "\n")
  5147.  @WRITE("@ParamPath","at", "[REDIR]\n")
  5148.  @WRITE("@ParamPath","at", "  LOGINS=@Logouts\n")
  5149.  @If (@NcpEnabled)
  5150.    @WRITE("@ParamPath","at", "  NCP_SUPPORT\n")
  5151.  @EndIf
  5152.  @If (@SmbEnabled)
  5153.    @WRITE("@ParamPath","at", "  SMB_SUPPORT\n")
  5154.  @EndIf
  5155.  @WRITE("@ParamPath","at", "\n")
  5156.  @WRITE("@ParamPath","at", "[SERVER]\n")
  5157.  
  5158.  @If (!@RunWindows) @Cls Finishing up.............. @EndIf
  5159.  @If (@FileAttr( "@SetPath", "r-" )) @EndIf
  5160.  @WRITE("@SetPath","wt", "@Echo off\n")
  5161.  @WRITE("@SetPath","at", "rem @Name v@Version BATCH file -- @SetPath --\n")
  5162.  @WRITE("@SetPath","at", "rem to change connections and build new CONNECT.BAT\n")
  5163.  @WRITE("@SetPath","at", "\n")
  5164.  @WRITE("@SetPath","at", "NET\n")
  5165.  @WRITE("@SetPath","at", "@Echo rem @ConnectPath for @Name v@Version >  @ConnectPath\n")
  5166.  @WRITE("@SetPath","at", "@Echo rem >> @ConnectPath\n")
  5167.  @WRITE("@SetPath","at", "NET SHOW/BATCH >> @ConnectPath\n")
  5168.  @WRITE("@SetPath","at", "echo New @Name connections are set up:\n")
  5169.  @WRITE("@SetPath","at", "NET SHOW\n")
  5170.  
  5171.  @If (!@RunWindows) @Cls Finishing up............... @EndIf
  5172.  @If (@FileAttr( "@StartPath", "r-" )) @EndIf
  5173.  @WRITE("@StartPath","wt", "@Echo off\n")
  5174.  @WRITE("@StartPath","at", "rem @Name  Version @Version  installed @DateToStr(@SystemDate)\n")
  5175.  @If (@ToFloppy)
  5176.    @WRITE("@StartPath","at", "rem (DOS Floppy Workstation)\n")
  5177.  @ElseIf (@RunWindows)
  5178.    @WRITE("@StartPath","at", "rem (for Windows)\n")
  5179.  @ElseIf (@InstallWindows)
  5180.    @WRITE("@StartPath","at", "rem (for Windows from DOS)\n")
  5181.  @ElseIf (@DD360)
  5182.    @WRITE("@StartPath","at", "rem (for DOS - DD)\n")
  5183.  @Else
  5184.    @WRITE("@StartPath","at", "rem (for DOS)\n")
  5185.  @EndIf
  5186.  @WRITE("@StartPath","at", "\n")
  5187.  @WRITE("@StartPath","at", "@StrHead(@ExecutePath,1):\n")
  5188.  @WRITE("@StartPath","at", "cd @ExecutePath\n")
  5189.  @WRITE("@StartPath","at", "\n")
  5190.  @If (!@RunWindows) @Cls Finishing up................ @EndIf
  5191.  @WRITE("@StartPath","at", "SET LAN_CFG=@EnvLanCfg\n")
  5192.  @WRITE("@StartPath","at", "\n")
  5193.  @WRITE("@StartPath","at", "rem If @Name is disabled, skip everything.\n")
  5194.  @WRITE("@StartPath","at", "IF EXIST @DisabledFile GOTO :STARTNET_DONE\n")
  5195.  @WRITE("@StartPath","at", "\n")
  5196.  @WRITE("@StartPath","at", "@Echo ===== Begin @Name configuration =====\n")
  5197.  @WRITE("@StartPath","at", "\n")
  5198.  @If (@InstallWindows)
  5199.    @WRITE("@StartPath","at", "PATH @ExecutePath;@LinkPath;%PATH%\n")
  5200.  @Else
  5201.    @WRITE("@StartPath","at", "PATH @ExecutePath;%PATH%\n")
  5202.  @EndIf
  5203.  @If (@Share)
  5204.    @WRITE("@StartPath","at", "SET LAN_DIR=@EnvLanDir\n")
  5205.  @EndIf
  5206.  @If (@InstallWindows)
  5207.    @WRITE("@StartPath","at", "SET NWDBPATH=@LinkPath\n")
  5208.  @EndIf
  5209.  @If (@MailServer)
  5210.    @WRITE("@StartPath","at", "SET SERVER_INI=@MailDataPath\\SERVER.INI\n")
  5211.  @EndIf
  5212.  @WRITE("@StartPath","at", "\n")
  5213.  @If (!@RunWindows) @Cls Finishing up................. @EndIf
  5214.  
  5215.  
  5216.  @If (!@RunWindows) @Cls Finishing up.................. @EndIf
  5217.  @If (@Our2mb)
  5218.    @WRITE("@StartPath","at", "@Loadhigh@StrToken(@AdapterProg,0,".") @AdapterArgs\n")
  5219.  @ElseIf (@OurMport)
  5220.    @WRITE("@StartPath","at", "@Loadhigh@StrToken(@AdapterProg,0,".") @AdapterArgs\n")
  5221.    @WRITE("@StartPath","at", "@StrToken(@NetbiosProg,0,".") @NetbiosParam\n")
  5222.    @WRITE("@StartPath","at", "@Loadhigh@StrToken(@AdapterProgX,0,".") @AdapterArgsX\n")
  5223.  @Else
  5224.    @If ((@NcpEnabled) || (@SmbEnabled))
  5225.      @If (@NcpEnabled)
  5226.        @WRITE("@StartPath","at", "@Loadhigh@!LSL\n")
  5227.        @WRITE("@StartPath","at", "NRODI\n")
  5228.        @WRITE("@StartPath","at", "@Loadhigh@!ODINSUP\n")
  5229.        @WRITE("@StartPath","at", "@Loadhigh@!IPXODI\n")
  5230.      @EndIf
  5231.      @If (@SmbEnabled)
  5232.        @WRITE("@StartPath","at", "rem Please obtain the NETBEUI.EXE program from Microsoft\n")
  5233.        @WRITE("@StartPath","at", "@Loadhigh@!NETBEUI\n")
  5234.      @EndIf
  5235.      @If (@NcpEnabled)
  5236.        @WRITE("@StartPath","at", "@Loadhigh@StrToken(@NdisProg,0,".") BIND_TO=NRODI NO_RECEIVE_HOLDOFF RECEIVE_BUFFERS=@RxBuffers\n")
  5237.      @Else
  5238.        @WRITE("@StartPath","at", "@Loadhigh@StrToken(@NdisProg,0,".") BIND_TO=@AdapterNif\n")
  5239.        @If (@SetINI("NETBEUI_XIF","BINDINGS",
  5240.            "@AdapterNif","@InstallPath\\@NdisProtocolFile")) @EndIf
  5241.      @EndIf
  5242.      @If (@SmbEnabled)
  5243.        @If (@SetINI("PROTMAN","Priority",
  5244.            "NETBEUI","@InstallPath\\@NdisProtocolFile")) @EndIf
  5245.        @If (@SetINI("NETBEUI_XIF","LANABASE",
  5246.            "1","@InstallPath\\@NdisProtocolFile")) @EndIf
  5247.      @EndIf
  5248.    @ElseIf (@NdisSelected || @AexNdisSelected)
  5249.      @WRITE("@StartPath","at", "@Loadhigh@StrToken(@NdisProg,0,".") BIND_TO=@AdapterNif\n")
  5250.    @Else
  5251.      @WRITE("@StartPath","at", "@Loadhigh@StrToken(@AdapterProg,0,".") @AdapterArgs\n")
  5252.      @If ("@AdapterProgX" != "")
  5253.        @WRITE("@StartPath","at", "@Loadhigh@StrToken(@AdapterProgX,0,".") @AdapterArgsX\n")
  5254.      @EndIf
  5255.    @EndIf
  5256.    @WRITE("@StartPath","at", "@StrToken(@NetbiosProg,0,".") @NetbiosParam\n")
  5257.  @EndIf
  5258.  
  5259.  @If (!@RunWindows) @Cls Finishing up................... @EndIf
  5260.  @WRITE("@StartPath","at", "\n")
  5261.  @WRITE("@StartPath","at", "@StrToken(@RedirProg,0,".") @ComputerName @LoginParam\n")
  5262.  @If (@Share)
  5263.    @WRITE("@StartPath","at", "\n")
  5264.    @WRITE("@StartPath","at", "IF EXIST @NoShareFile GOTO :NOSHARE\n")
  5265.    @WRITE("@StartPath","at", "@StrToken(@ServerProg,0,".") @EnvLanDir @LoginParam\n")
  5266.    @WRITE("@StartPath","at", "NET LOGIN \\\\@ComputerName\n")
  5267.    @WRITE("@StartPath","at", "GOTO :CONTINUE\n")
  5268.    @WRITE("@StartPath","at", "\n")
  5269.    @WRITE("@StartPath","at", ":NOSHARE\n")
  5270.    @WRITE("@StartPath","at", "@Echo @Name server was installed but turned off.\n")
  5271.    @WRITE("@StartPath","at", "\n")
  5272.    @WRITE("@StartPath","at", ":CONTINUE\n")
  5273.  @EndIf
  5274.  @If (!@RunWindows) @Cls Finishing up.................... @EndIf
  5275.  @WRITE("@StartPath","at", "\n")
  5276.  @WRITE("@StartPath","at", "rem If CONNECT.BAT exists, run it to set up connections.\n")
  5277.  @WRITE("@StartPath","at", "IF EXIST CONNECT.BAT GOTO :CONNECT\n")
  5278.  @WRITE("@StartPath","at", "\n")
  5279.  @WRITE("@StartPath","at", "rem Otherwise set up connections specified during install.\n")
  5280.  @If ("@DriveLetter1" != "")
  5281.    @WRITE("@StartPath","at", "NET LOGIN/wait \\\\@DriveServer1\n")
  5282.    @WRITE("@StartPath","at", "NET USE @DriveLetter1: \\\\@DriveServer1\\@DriveName1\n")
  5283.  @EndIf
  5284.  @If ("@DriveLetter2" != "")
  5285.    @If ("@DriveServer1" != "@DriveServer2")
  5286.      @WRITE("@StartPath","at", "NET LOGIN/wait \\\\@DriveServer2\n")
  5287.    @EndIf
  5288.    @WRITE("@StartPath","at", "NET USE @DriveLetter2: \\\\@DriveServer2\\@DriveName2\n")
  5289.  @EndIf
  5290.  @If (!@RunWindows) @Cls Finishing up..................... @EndIf
  5291.  @If ("@PrintPort1" != "")
  5292.    @If (("@PrintServer1" != "@DriveServer1") &&
  5293.         ("@PrintServer1" != "@DriveServer2") &&
  5294.         ("@PrintServer1" != "@ComputerName"))
  5295.      @WRITE("@StartPath","at", "NET LOGIN/wait \\\\@PrintServer1\n")
  5296.    @EndIf
  5297.    @WRITE("@StartPath","at", "NET USE @PrintPort1: \\\\@PrintServer1\\@PrintName1\n")
  5298.  @EndIf
  5299.  @If ("@PrintPort2" != "")
  5300.    @If (("@PrintServer2" != "@DriveServer1") &&
  5301.         ("@PrintServer2" != "@DriveServer2") &&
  5302.         ("@PrintServer2" != "@PrintServer1") &&
  5303.         ("@PrintServer1" != "@ComputerName"))
  5304.      @WRITE("@StartPath","at", "NET LOGIN/wait \\\\@PrintServer2\n")
  5305.    @EndIf
  5306.    @WRITE("@StartPath","at", "NET USE @PrintPort2: \\\\@PrintServer2\\@PrintName2\n")
  5307.  @EndIf
  5308.  
  5309.  @If (!@RunWindows) @Cls Finishing up...................... @EndIf
  5310.  @WRITE("@StartPath","at", "NET LPT TIMEOUT 10\n")
  5311.  @WRITE("@StartPath","at", "GOTO :CONNECT_DONE\n")
  5312.  @WRITE("@StartPath","at", "\n")
  5313.  @WRITE("@StartPath","at", ":CONNECT\n")
  5314.  @WRITE("@StartPath","at", "@Echo Setting up @Name connections from CONNECT.BAT\n")
  5315.  @WRITE("@StartPath","at", "rem Build CONNECT.BAT like this: \"NET SHOW/BATCH > @ExecutePath\\CONNECT.BAT\"\n")
  5316.  @WRITE("@StartPath","at", "rem   (or run the batch file SETNET.BAT)\n")
  5317.  @WRITE("@StartPath","at", "@Call@!CONNECT.BAT\n")
  5318.  @WRITE("@StartPath","at", "\n")
  5319.  @WRITE("@StartPath","at", ":CONNECT_DONE\n")
  5320.  @WRITE("@StartPath","at", "NET POSTBOX\n")
  5321.  @WRITE("@StartPath","at", "\n")
  5322.  @WRITE("@StartPath","at", "@Echo ===== End @Name configuration =====\n")
  5323.  @WRITE("@StartPath","at", "\n")
  5324.  @WRITE("@StartPath","at", ":STARTNET_DONE\n")
  5325.  @WRITE("@StartPath","at", "cd \\\n")
  5326.  
  5327.  @Delete("@InstallPath\\INSTALL.EXE")
  5328.  
  5329.  @Delete("@InstallPath\\@DisabledFile")
  5330.  
  5331.  @Delete("@InstallPath\\@NoShareFile")
  5332.  
  5333.  @If (@ToFloppy)
  5334.    @Delete("@StrHead(@InstallPath,1):\\DISK.ID")
  5335.  @EndIf
  5336.  
  5337.  
  5338.  @If (!@RunWindows) @Cls Finishing up....................... @EndIf
  5339.  
  5340.  @If (@InstallWindows)
  5341.    @MkDir("@InstallPath\\NW\\LANTASTI.SHR")
  5342.  @EndIf
  5343.  @If (@Share)
  5344.    @MkDir("@SharePath\\SYSTEM.NET")
  5345.    @Copy("@InstallPath\\BOOT.IMD","@SharePath\\SYSTEM.NET")
  5346.    @Copy("@InstallPath\\IBMBOOT.TYP","@SharePath\\SYSTEM.NET")
  5347.    @Copy("@InstallPath\\FFRPL.TYP","@SharePath\\SYSTEM.NET")
  5348.    @Copy("@InstallPath\\FFRAMRPL.BST","@SharePath\\SYSTEM.NET")
  5349.    @Copy("@InstallPath\\FFRAMRPL.BSD","@SharePath\\SYSTEM.NET")
  5350.  
  5351.    @If (!@RunWindows) @Cls Finishing up........................ @EndIf
  5352.    @If (@Exists("@s7"))
  5353.      @If (@RunWindows)
  5354.  
  5355.        @If (@WINEXEC(@s8,2)) @EndIf
  5356.        @Delay(2)
  5357.      @Else
  5358.        @If (@SPAWN(@s8)) @EndIf
  5359.      @EndIf
  5360.    @Else
  5361.      @Cls @If (@BackgroundMode(3,@Red,@Red)) @EndIf
  5362.      @Warning
  5363.      @Underline40
  5364.  
  5365.      The control directory initialization program
  5366.  
  5367.      ---- @s7 ----
  5368.  
  5369.      was not found, so the required initialization of
  5370.      the  @SharePath  directory for @Name
  5371.      was NOT performed.
  5372.      @FlushKeyboard() @Pause @Exit
  5373.    @EndIf
  5374.  @EndIf
  5375.  
  5376.  @If (!@RunWindows) @Cls Finishing up......................... @EndIf
  5377.  @If (@InstallMode)
  5378.    @If  ((@License("@InstallPath\\@RedirProg","@LicensePath\\@InstallProg") != 0)
  5379.      || (@Share && @License("@InstallPath\\@ServerProg","@LicensePath\\@InstallProg") != 0))
  5380.      @Cls @If (@BackgroundMode(3,@Red,@Red)) @EndIf
  5381.  
  5382.      @Warning
  5383.      @Underline40
  5384.  
  5385.      Unable to license @your @Name programs.
  5386.      @Name will not run on this computer.
  5387.      @FlushKeyboard() @Pause
  5388.      @ChDrive( @StartupDrive )
  5389.      @ChDir( "@StartupDir" )
  5390.      @Exit
  5391.    @Else
  5392.      @If (@NcpEnabled || @SmbEnabled || @NewMailServer)
  5393.       @If (@BackgroundMode(3,@Yellow,@Black)) @EndIf
  5394.       @Cls
  5395.       @MoveCStr(@DosHeadingRow,(@DosHeadingCol1),@DosHeadingColor,@DosHeadingText)
  5396.              I M P O R T A N T   N O T E
  5397.       @Underline40
  5398.       @If (@NcpEnabled)
  5399.       You have installed @Name as a Novell@Registered Netware client
  5400.       using:  @AdapterName.
  5401.       To set up @Name as a Novell client using a different
  5402.       adapter, see the "@Name Installation and Management Guide".
  5403.       @EndIf @If (@SmbEnabled)
  5404.       You have installed @Name as a Microsoft@Registered client.
  5405.       You need to obtain the NETBEUI.EXE file from Microsoft
  5406.       and place it in @InstallPath. @If (@SmbEnabled & 1 ) Or you can install
  5407.       the Artisoft "AILANBIO" NETBIOS program on your
  5408.       Windows for Workgroups(tm) computer. @EndIf
  5409.       @EndIf @If (@NewMailServer)
  5410.       You have installed a new Artisoft Exchange Mail
  5411.       Post Office.  You need to add @If (@SyncMail)@!a @Name account @Else@!an Exchange Mail account @EndIf
  5412.       for each mail user that does not already have one.
  5413.       @EndIf @FlushKeyboard() @Pause
  5414.      @EndIf
  5415.      @If (@BackgroundMode(3,@Green,@Black)) @EndIf
  5416.      @Cls
  5417.      @MoveCStr(@DosHeadingRow,(@DosHeadingCol1),@DosHeadingColor,@DosHeadingText)
  5418.      @StrConvert(@action,"uc")  COMPLETE
  5419.  
  5420.      @Underline40
  5421.  
  5422.      @Name @Registered Version @Version @action
  5423.      has been successfully completed.
  5424.  
  5425.      You will need to@!@s1 REBOOT@!@If ("@s1"=="") YOUR COMPUTER @EndIf
  5426.      @If ("@s1"!="")@!YOUR COMPUTER @EndIf@!to join the @Name network. @If (@RunWindows && @Removable(@ScriptDrive)) Please
  5427.      remove the @Name installation diskette from Drive @ScriptDrive. @EndIf
  5428.  
  5429.      Please perform this @action on each computer
  5430.      in your @Name network.  Then store @your @Name
  5431.      diskettes in a safe place. @If (@NewInstall) You will need them to
  5432.      install software upgrades. @EndIf
  5433.      @FlushKeyboard() @Pause
  5434.    @EndIf
  5435.  @EndIf
  5436.  
  5437.  @If (@DebugMode)
  5438.    @Cls
  5439.    Memory  = @HeapAvail bytes remaining out of @HeapTotal
  5440.    Startup time = @Eval(@Time1-@Time0)
  5441.    Entry time = @Eval(@Time2-@Time1)
  5442.    Finish time = @Eval(@SystemDate-@Time2)
  5443.    @FlushKeyboard() @Pause
  5444.  @EndIf
  5445.  
  5446.  @ChDrive( @StartupDrive )
  5447.  @ChDir( "@StartupDir" )
  5448.  
  5449.  @If (!@RunWindows)
  5450.    @If (@ToHard && !@NoRebootMode)
  5451.      @Cls
  5452.      In a moment, INSTALL will reboot @your computer to activate
  5453.      @your @Name network software. @If (@Removable(@ScriptDrive)) Please remove the @Name
  5454.      installation diskette from Drive @ScriptDrive. @EndIf
  5455.  
  5456.      Please wait...
  5457.      @Delay(3)
  5458.      @Cls
  5459.      @If (@ScriptXfered) @Delete("@ScriptTempPath\\@InstallScript") @EndIf
  5460.      @If (@NewTemp) @RmDir(@ScriptTempPath) @EndIf
  5461.      @Reboot()
  5462.      @Exit
  5463.    @Else
  5464.      @If (@ScriptXfered) @Delete("@ScriptTempPath\\@InstallScript") @EndIf
  5465.      @If (@NewTemp) @RmDir(@ScriptTempPath) @EndIf
  5466.      @Exit
  5467.    @EndIf
  5468.  @Else
  5469.    @If (@ToHard && !@NoRebootMode)
  5470.      @Delete("@WindowsPath\\@InstallScript")
  5471.      @Reboot()
  5472.      @Exit
  5473.    @Else
  5474.      @Delete("@WindowsPath\\@InstallScript")
  5475.      @Exit
  5476.    @EndIf
  5477.  @EndIf
  5478.  
  5479. @EndFinish
  5480.  
  5481.